/* Catalogue-only controls. The product gallery and all other storefront pages stay intact. */
body.catalog-enhanced .catalog-shop-layout { display:grid; grid-template-columns:244px minmax(0,1fr); gap:32px; max-width:1500px; margin:0 auto; align-items:start; }
.catalog-results { min-width:0; }
.catalog-facet-slot:empty { display:none; }
.cf-panel,.cf-toolbar,.cf-results-heading,.cf-chips,.cf-empty,.cf-dialog { color:#111a20; font-family:Arial,sans-serif; font-size:15px; line-height:1.45; }
.cf-panel *, .cf-toolbar *, .cf-dialog * { box-sizing:border-box; }
.cf-panel button,.cf-toolbar button,.cf-chips button,.cf-results-heading button,.cf-empty button,.cf-dialog button { cursor:pointer; font:inherit; color:inherit; text-transform:none; letter-spacing:normal; }
.cf-panel svg,.cf-toolbar svg,.cf-chips svg,.cf-empty svg,.cf-dialog svg { flex:none; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.cf-panel { border-top:2px solid #101a20; }
.cf-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:16px 0 10px; }
.cf-panel-heading h2 { display:flex; align-items:center; gap:10px; margin:0; font:650 17px Unbounded,sans-serif; letter-spacing:-.04em; }
.cf-panel-heading button { border:0; padding:10px 0 10px 10px; background:none; font-size:13px; text-decoration:underline; text-underline-offset:4px; }
.cf-panel button:disabled { color:#778080; cursor:default; text-decoration:none; }
.cf-group { min-width:0; margin:20px 0 0; padding:18px 0 22px; border:0; border-bottom:1px solid #c5cac3; }
.cf-group legend { padding:0; font-weight:700; font-size:16px; }
.cf-group > p { margin:-8px 0 14px; color:#646e6e; font-size:13px; }
.cf-choice { display:flex; align-items:center; gap:10px; min-height:43px; margin:0; padding:8px 6px; border-radius:2px; cursor:pointer; transition:background .15s,color .15s; }
.cf-choice:hover { background:#daddd5; }
.cf-choice:has(input:checked) { background:#f0d7be; }
.cf-choice:has(input:disabled) { opacity:.45; cursor:default; }
.cf-choice input { appearance:none; flex:0 0 18px; width:18px; height:18px; margin:0; border:1px solid #78817d; border-radius:2px; background:transparent; cursor:inherit; }
.cf-choice input:checked { border-color:#172026; background:#172026; position:relative; }
.cf-choice input:checked::after { content:""; position:absolute; left:5px; top:2px; width:5px; height:9px; border:solid #f38a2c; border-width:0 2px 2px 0; transform:rotate(45deg); }
.cf-choice span { min-width:0; flex:1; }
.cf-choice b { color:#59645f; font-size:13px; font-weight:400; font-variant-numeric:tabular-nums; }
.cf-panel-note { padding-top:22px; color:#646e68; font-size:13px; line-height:1.6; }
.cf-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 220px; align-items:stretch; gap:16px; min-height:62px; }
.cf-search { display:flex; align-items:center; min-width:0; gap:12px; padding:0 14px; border:1px solid #b9c1b9; background:#f4f4ec; }
.cf-search:focus-within { border-color:#172026; box-shadow:inset 0 -2px #e68836; }
.cf-search input { width:100%; min-width:0; min-height:58px; padding:0; border:0; outline:0; background:transparent; color:#111a20; font:16px Arial,sans-serif; }
.cf-search input::placeholder { color:#66726e; }
.cf-search input::-webkit-search-cancel-button { display:none; }
.cf-search button { display:grid; place-items:center; flex:0 0 36px; min-height:44px; margin-right:-8px; padding:0; border:0; background:transparent; }
.cf-sort { position:relative; display:grid; min-width:0; padding:7px 12px 3px; background:#daded6; border:1px solid #c0c7be; }
.cf-sort > span { padding-right:24px; color:#5d6861; font-size:12px; }
.cf-sort select { appearance:none; min-width:0; width:100%; padding:2px 27px 5px 0; border:0; border-radius:0; background:transparent; color:#111a20; font:15px Arial,sans-serif; cursor:pointer; }
.cf-sort > svg { position:absolute; right:12px; bottom:13px; width:18px; height:18px; pointer-events:none; }
.cf-toolbar .cf-open { display:none; }
.cf-results-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:55px; margin:13px 0 0; }
.cf-results-heading p { margin:0; color:#657069; font-size:14px; }
.cf-results-heading b { color:#111a20; font-size:20px; font-variant-numeric:tabular-nums; }
.cf-results-heading button { min-height:44px; padding:8px 0; border:0; background:transparent; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.cf-chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 25px; }
.cf-chips:empty { margin-bottom:16px; }
.cf-chips button { display:flex; align-items:center; gap:10px; max-width:100%; min-height:40px; padding:8px 10px 8px 13px; border:1px solid #b8c0b6; background:transparent; font-size:14px; text-align:left; overflow-wrap:anywhere; transition:background .16s; }
.cf-chips button:hover { background:#f0d7be; }
.cf-chips svg { width:16px; height:16px; transition:transform .2s; }
.cf-chips button:hover svg { transform:rotate(90deg); }
body.catalog-enhanced .catalog-full-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(430px,auto); gap:12px; width:100%; margin:0; }
body.catalog-enhanced .catalog-full-grid .shop-card:not([hidden]) { grid-column:auto; grid-row:auto; min-width:0; }
body.catalog-enhanced .catalog-full-grid .shop-card:hover { transform:none; }
.cf-empty { display:grid; justify-items:start; gap:16px; min-height:370px; padding:60px 30px; border-top:1px solid #bfc5bc; }
.cf-empty > svg { width:40px; height:40px; color:#b95c1a; }
.cf-empty h2 { max-width:650px; margin:0; font:700 clamp(22px,2.5vw,36px)/1.2 Unbounded,sans-serif; letter-spacing:-.05em; }
.cf-empty p { margin:0; color:#647169; }
.cf-empty button { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:50px; padding:12px 18px; border:0; background:#e68836; color:#101a20; font-weight:600; }
.cf-empty button svg,.cf-dialog footer button svg { transition:transform .22s; }
.cf-empty button:hover svg,.cf-dialog footer button:hover svg { transform:translateX(4px); }
.cf-dialog { width:min(100% - 20px,540px); max-width:none; max-height:calc(100dvh - 20px); height:calc(100dvh - 20px); margin:auto; padding:0; border:0; background:#eef0e8; overscroll-behavior:contain; }
.cf-dialog[open] { display:flex; flex-direction:column; }
.cf-dialog::backdrop { background:rgba(9,16,20,.65); }
.cf-dialog > header { display:flex; flex:none; justify-content:space-between; align-items:center; gap:15px; padding:14px 18px; border-bottom:1px solid #c0c7be; }
.cf-dialog > header h2 { margin:0; font:650 20px/1.2 Unbounded,sans-serif; letter-spacing:-.04em; }
.cf-dialog > header button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #a6b0a5; background:transparent; }
.cf-dialog-body { min-height:0; flex:1; overflow-y:auto; overscroll-behavior:contain; padding:0 18px 22px; }
.cf-dialog .cf-panel { border:0; }
.cf-dialog .cf-panel-heading h2 { font:600 15px Arial,sans-serif; }
.cf-dialog .cf-panel-heading h2 svg { width:19px; height:19px; }
.cf-dialog .cf-panel-heading h2 { display:none; }
.cf-dialog .cf-panel-heading { justify-content:flex-end; padding-top:6px; padding-bottom:0; }
.cf-dialog .cf-choice { min-height:46px; }
.cf-dialog .cf-group { margin-top:12px; padding-bottom:20px; }
.cf-dialog footer { flex:none; padding:12px 18px max(14px,env(safe-area-inset-bottom)); border-top:1px solid #bfc7bb; background:#eef0e8; }
.cf-dialog footer button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:52px; padding:12px 16px; border:0; background:#e68836; color:#111a20; font-weight:700; }
body.cf-modal-open { overflow:hidden; }
/* A closed drawer's large shadow must not darken the filter/sort column. */
body.catalog-enhanced:not(.cart-open) .cart-drawer { box-shadow:none; }
.cf-panel :focus-visible,.cf-toolbar :focus-visible,.cf-chips :focus-visible,.cf-empty :focus-visible,.cf-dialog :focus-visible { outline:2px solid #a94c0b; outline-offset:3px; }
.cf-search input:focus-visible { outline:none; }
@media(min-width:1800px) { body.catalog-enhanced .catalog-full-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:1200px) and (min-width:981px) { body.catalog-enhanced .catalog-shop-layout { grid-template-columns:220px minmax(0,1fr); gap:24px; } body.catalog-enhanced .catalog-full-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:980px) {
  body.catalog-enhanced .catalog-shop-layout { display:block; }
  .catalog-facet-slot { display:none; }
  .cf-toolbar { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:10px; }
  .cf-search { grid-column:1/-1; min-height:54px; }
  .cf-search input { min-height:52px; }
  .cf-toolbar .cf-open { display:flex; align-items:center; justify-content:center; gap:9px; min-height:58px; padding:9px 12px; border:1px solid #a9b3a8; background:#eef0e8; font-size:15px; font-weight:600; }
  .cf-open b { display:grid; place-items:center; min-width:23px; height:23px; padding:0 4px; border-radius:50%; background:#172026; color:#f38a2c; font:600 12px Arial,sans-serif; }
  .cf-sort { min-height:58px; }
  .cf-sort select { font-size:14px; }
  body.catalog-enhanced .catalog-full-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:auto; gap:8px; }
  .cf-chips { margin-bottom:24px; }
}
@media(max-width:520px) {
  .cf-toolbar { gap:8px; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
  .cf-search { gap:8px; padding-left:11px; }
  .cf-search input { font-size:16px; }
  .cf-search input::placeholder { font-size:14px; }
  .cf-toolbar .cf-open { gap:6px; font-size:14px; padding-inline:8px; }
  .cf-sort { padding-left:9px; padding-right:8px; }
  .cf-sort > svg { right:7px; }
  .cf-sort select { padding-right:18px; font-size:14px; }
  .cf-results-heading { min-height:52px; margin-top:8px; }
  .cf-results-heading p,.cf-results-heading button { font-size:13px; }
  .cf-chips button { min-height:42px; font-size:13px; }
  body.catalog-enhanced .catalog-full-grid { gap:6px; }
  .cf-empty { min-height:330px; padding:36px 14px; }
  .cf-dialog { width:100%; height:94dvh; max-height:94dvh; margin:auto 0 0; }
}
@media(prefers-reduced-motion:reduce) { .cf-choice,.cf-chips button,.cf-chips svg,.cf-empty button svg,.cf-dialog footer button svg { transition:none; } }
