/* Filament pane (assets/filaments/filaments.js) and the slot buttons pages put
   in place of their old swatch grids. Uses the site tokens (site.css) with
   fallbacks, so it reads right on every themed page. */

html.fil-pane-open { overflow: hidden; }

.fil-pane { position: fixed; inset: 0; z-index: 100000; font-family: var(--font, system-ui, sans-serif); color: var(--text, #16202e); }
.fil-pane[hidden] { display: none; }
/* the area left of the pane: clear, never tinted or blurred (owner, 2026-10-23: any wash over the preview
   misrepresents the colours); it only catches a click to close */
.fil-pane__scrim { position: absolute; inset: 0; background: transparent; }

/* wider on big screens, the full width on phones */
.fil-pane__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, clamp(360px, 38vw, 640px)); display: flex; flex-direction: column;
    background: var(--bg-2, #fff); border-left: 1px solid var(--line-2, rgba(0,0,0,.18));   /* a line, not a shadow: nothing falls on the preview */
    transform: translateX(104%); transition: transform .34s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
.fil-pane.is-open .fil-pane__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .fil-pane__panel { transition: none; } }

.fil-pane__head { display: flex; gap: 12px; align-items: flex-start; padding: 22px 22px 12px; }
.fil-pane__head > div { flex: 1; min-width: 0; }
.fil-pane .fil-pane__head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.fil-pane .fil-pane__note { margin: 4px 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted, #6f6a65); }
.fil-pane__note:empty { display: none; }
.fil-pane__x { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
    background: var(--bg-3, #f1ede7); color: inherit; cursor: pointer; }
.fil-pane__x:hover { background: var(--line-2, #e2dcd3); }

.fil-pane__tabs { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; padding: 0 22px 12px; }
.fil-pane__tabs[hidden] { display: none; }
/* a tab, stacked so any number fits: label, the colours it holds, their names */
.fil-pane__tabs button { display: grid; justify-items: start; gap: 5px; min-width: 0; padding: 8px 10px; text-align: left;
    border: 1px solid var(--line-2, #ddd); border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.fil-pane__tabs button[aria-selected="true"] { border-color: var(--text, #16202e); box-shadow: inset 0 0 0 1px var(--text, #16202e); }
.fil-pane__tabdots { display: flex; order: 2; }
.fil-pane__tabdots:empty { display: none; }
.fil-pane__tabdots i { width: 20px; height: 20px; margin-left: -6px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: 0 0 0 2px var(--bg-2, #fff); }
.fil-pane__tabdots i:first-child { margin-left: 0; }
.fil-pane__tabs button > span:last-child { display: contents; }
.fil-pane__tabs small { order: 1; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6f6a65); }
.fil-pane__tabname { order: 3; max-width: 100%; font-size: .78rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fil-pane__tools { display: grid; gap: 8px; padding: 0 22px 12px; border-bottom: 1px solid var(--line, #eee); }
.fil-pane__toolrow { display: flex; gap: 10px; align-items: center; }
/* under the search: the product's lock on the left, "In stock only" on the right */
.fil-pane__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.fil-pane__meta[hidden] { display: none; }
.fil-pane .fil-pane__search { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 1px solid var(--line-2, #ddd); border-radius: 99px;
    background: var(--bg, #faf8f5); color: inherit; font: inherit; font-size: .88rem; }
.fil-pane .fil-pane__search:focus { outline: none; border-color: var(--text, #16202e); }
/* a product's lock: a fixed filter, not clearable */
.fil-pane__locks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fil-pane__locks:empty { display: none; }
.fil-pane__lock { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--bg-3, #f1ede7);
    color: var(--text, #16202e); font-size: .74rem; font-weight: 600; line-height: 1; }
.fil-pane__lock svg { flex: 0 0 auto; display: block; }
.fil-pane__lockwhy { font-size: .72rem; line-height: 1; color: var(--muted, #6f6a65); }
/* "In stock only": a switch */
.fil-pane .fil-pane__stock { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: .78rem; font-weight: 600; color: var(--text, #16202e);
    white-space: nowrap; cursor: pointer; }
.fil-pane__stock[hidden] { display: none; }
.fil-pane__stock input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fil-pane__switch { position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--line-2, #ccc); transition: background .15s; }
.fil-pane__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.fil-pane__stock input:checked + .fil-pane__switch { background: var(--text, #16202e); }
.fil-pane__stock input:checked + .fil-pane__switch::after { transform: translateX(12px); }
.fil-pane__stock input:focus-visible + .fil-pane__switch { outline: 2px solid var(--accent, #c8452a); outline-offset: 2px; }

/* filter button beside the search, and the chip row it opens */
.fil-pane .fil-pane__fbtn[hidden] { display: none; }
.fil-pane .fil-pane__fbtn { position: relative; flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
    border: 1px solid var(--line-2, #ddd); border-radius: 50%; background: var(--bg-2, #fff); color: var(--muted, #6f6a65); cursor: pointer; }
.fil-pane .fil-pane__fbtn:hover, .fil-pane .fil-pane__fbtn[aria-expanded="true"] { border-color: var(--text, #16202e); color: var(--text, #16202e); }
.fil-pane .fil-pane__fbtn.is-active { background: var(--text, #16202e); border-color: var(--text, #16202e); color: var(--bg-2, #fff); }
.fil-pane__fcount { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
    background: var(--accent, #c8452a); color: #fff; font-size: .62rem; font-weight: 700; line-height: 17px; text-align: center; }
.fil-pane__fcount[hidden] { display: none; }
.fil-pane__filters { display: grid; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--line, #eee); background: var(--bg, #faf8f5); }
.fil-pane__filters[hidden] { display: none; }
.fil-pane__fgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fil-pane__fgroup small { flex: 0 0 100%; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #6f6a65); }
.fil-pane .fil-pane__chip { padding: 4px 11px; border: 1px solid var(--line-2, #ddd); border-radius: 99px; background: var(--bg-2, #fff); color: inherit;
    font: inherit; font-size: .76rem; cursor: pointer; }
.fil-pane .fil-pane__chip[aria-pressed="true"] { background: var(--text, #16202e); border-color: var(--text, #16202e); color: var(--bg-2, #fff); }
.fil-pane .fil-pane__fclear { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted, #6f6a65); font: inherit; font-size: .76rem;
    text-decoration: underline; cursor: pointer; }

.fil-pane__list { flex: 1; overflow-y: auto; padding: 6px 22px 22px; overscroll-behavior: contain; container-type: inline-size; }
.fil-pane .fil-pane__ghead { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.fil-pane .fil-pane__ghead h3 { margin: 0; }
.fil-pane .fil-pane__gstock { font-size: .72rem; }
.fil-pane .fil-pane__gnone { margin: 0 0 6px; font-size: .78rem; color: var(--muted, #6f6a65); }
.fil-pane .fil-pane__list h3 { margin: 18px 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted, #6f6a65); }
/* 1 to 5 columns, by the room the pane has */
.fil-pane__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 8px; }
@container (min-width: 300px) { .fil-pane__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 480px) { .fil-pane__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 680px) { .fil-pane__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 860px) { .fil-pane__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fil-pane__empty { margin: 30px 0; text-align: center; color: var(--muted, #6f6a65); font-size: .9rem; }

/* out of stock: any filament circle gets a diagonal slash in a contrasting colour (--x, set from the hex) */
.fil-oos { position: relative; }
.fil-oos::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: linear-gradient(to bottom right, transparent calc(50% - 1.2px), var(--x, #6b6b6b) calc(50% - 1.2px),
        var(--x, #6b6b6b) calc(50% + 1.2px), transparent calc(50% + 1.2px)); }

/* the page's own blocks (at most two), between the tabs and the search; their insides are the page's */
.fil-pane__secs { display: grid; gap: 8px; padding: 0 22px 12px; }
.fil-pane__secs[hidden] { display: none; }
.fil-pane__sec { padding: 10px 12px; border-radius: 12px; background: var(--bg-3, #f1ede7); font-size: .8rem; }

/* a swatch: the filament's own hex as a flat fill (no shading, so the colour reads true), name, brand · material · finish */
.fil-sw { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center;
    min-width: 0; padding: 9px 10px 9px 9px; text-align: left; border: 1px solid var(--line, #eee); border-radius: 12px;
    background: var(--bg-2, #fff); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.fil-pane.is-browse .fil-sw { cursor: default; }
.fil-pane:not(.is-browse) .fil-sw:hover { border-color: var(--line-2, #ccc); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14,16,22,.08); }
/* listed but not pickable (oos 'show'): the colour stays true, only the card says no */
.fil-pane .fil-sw.is-off { cursor: not-allowed; background: var(--bg, #faf8f5); border-style: dashed; }
.fil-pane .fil-sw.is-off .fil-sw__name { color: var(--muted, #6f6a65); }
/* Astra paints every hovered or focused <button> with its brand blue (button:focus, button:hover).
   Nothing in or around the pane may change colour that way: each button keeps its own fill in every
   state, and focus shows as an outline only. */
body .fil-pane .fil-sw, body .fil-pane .fil-sw:is(:hover, :focus, :active) { background: var(--bg-2, #fff); color: inherit; }
body .fil-pane .fil-sw.is-off, body .fil-pane .fil-sw.is-off:is(:hover, :focus, :active) { background: var(--bg, #faf8f5); }
body .fil-pane .fil-pane__x:is(:hover, :focus, :active) { background: var(--line-2, #e2dcd3); color: inherit; }
body .fil-pane .fil-pane__tabs button:is(:hover, :focus, :active) { background: transparent; color: inherit; }
body .fil-pane .fil-pane__fbtn:not(.is-active):is(:hover, :focus, :active) { background: var(--bg-2, #fff); color: var(--text, #16202e); }
body .fil-pane .fil-pane__fbtn.is-active:is(:hover, :focus, :active) { background: var(--text, #16202e); color: var(--bg-2, #fff); }
body .fil-pane .fil-pane__chip:is(:hover, :focus, :active) { background: var(--bg-2, #fff); color: inherit; }
body .fil-pane .fil-pane__chip[aria-pressed="true"]:is(:hover, :focus, :active) { background: var(--text, #16202e); color: var(--bg-2, #fff); }
body .fil-pane .fil-pane__fclear:is(:hover, :focus, :active) { background: none; color: var(--muted, #6f6a65); }
body .fil-pane .fil-pane__done:is(:hover, :focus, :active) { background: var(--text, #16202e); color: var(--bg-2, #fff); }
body .fil-slot:is(:hover, :focus, :active) { background: #fff; color: #1e1e22; }
body.site-chrome .st-nav__fil:is(:hover, :focus, :active) { background: transparent; }
.fil-pane button:focus:not(:focus-visible), .fil-slot:focus:not(:focus-visible) { outline: none; }
.fil-sw:focus { outline: none; }
.fil-sw:focus-visible { outline: 2px solid var(--accent, #c8452a); outline-offset: 2px; }
.fil-sw.is-on { border-color: var(--text, #16202e); box-shadow: inset 0 0 0 1px var(--text, #16202e); }
.fil-sw__dot { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
/* picked: a tick on the card's corner, never painted over the colour */
.fil-sw.is-on::after { content: ""; position: absolute; top: 6px; right: 7px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--text, #16202e) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.fil-sw__name { font-size: .82rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-sw__meta b { font-weight: 700; color: var(--text, #16202e); }
.fil-sw__meta { font-size: .68rem; line-height: 1.25; color: var(--muted, #6f6a65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-sw__oos { position: absolute; top: -7px; right: 8px; padding: 1px 7px; border-radius: 99px; font-size: .6rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; background: #f3e6cf; color: #7a5a1e; }

.fil-pane__foot { display: flex; gap: 12px; align-items: center; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line, #eee); }
.fil-pane.is-browse .fil-pane__foot { display: none; }
.fil-pane__check { flex: 1; margin: 0; font-size: .8rem; line-height: 1.4; color: var(--muted, #6f6a65); }
.fil-pane__check[data-level="warn"] { color: #8a5a12; }
.fil-pane__done { flex: 0 0 auto; height: 42px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--text, #16202e); color: var(--bg-2, #fff);
    font: inherit; font-weight: 600; cursor: pointer; }

/* ---- slot buttons on the page (keychain, lithophane, any later picker) ---- */
.fil-slot { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 14px 9px 9px; text-align: left; border: 1px solid #ddd6ce;
    border-radius: 12px; background: #fff; color: #1e1e22; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.fil-slot:hover { border-color: #1e1e22; }
.fil-slot:focus-visible { outline: 2px solid #c8452a; outline-offset: 2px; }
.fil-slot__dot { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--c, transparent); border: 1px solid rgba(0,0,0,.18); }
.fil-slot__txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.fil-slot__lbl { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #77706a; }
.fil-slot__name { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-slot__meta { font-size: .72rem; color: #77706a; }
.fil-slot__meta:empty { display: none; }
.fil-slot.is-oos .fil-slot__meta { color: #8a5a12; }
.fil-slot__go { flex: 0 0 auto; font-size: .78rem; font-weight: 600; color: #77706a; }
.fil-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }

/* header button: the catalogue, on every page with the site header */
/* same footprint as .st-nav__cart beside it */
body.site-chrome .st-nav__fil { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0;
    border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; transition: border-color .2s; }
body.site-chrome .st-nav__fil:hover { border-color: var(--line-2); }
body.site-chrome .st-nav__fil span { width: 18px; height: 18px; border-radius: 50%; transition: transform .5s var(--ease-out);
    background: conic-gradient(#f4334c, #fd932c, #f4c234, #6bcc6c, #13c3fd, #6d43ab, #f4a8bc, #f4334c);
    -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px); mask: radial-gradient(circle, transparent 4px, #000 4.5px); }
body.site-chrome .st-nav__fil:hover span { transform: rotate(120deg); }
