/* Shop Kit: shop / category pages (F17 filters, F18 toolbar, drawer, columns). */

.sk-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 0; margin-bottom: 14px; }
.sk-tbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--sk-ink); border-radius: var(--sk-radius); background: var(--sk-white); color: var(--sk-ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.sk-tbtn[aria-expanded=true] { background: var(--sk-ink); color: #fff; }
.sk-count { color: var(--sk-muted); font-size: 14px; }
.sk-toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sk-sort select { min-height: 40px; padding: 6px 30px 6px 10px; border: 1px solid var(--sk-rule); border-radius: var(--sk-radius); background-color: var(--sk-white); font: inherit; font-size: 14px; color: var(--sk-ink); }
/* Column switcher: pill shape allowed by Habib. */
/* slop-ok: pills */
.sk-cols { display: flex; gap: 2px; padding: 3px; background: var(--sk-white); border-radius: 999px; overflow: hidden; }
.sk-cols button { width: 36px; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--sk-muted); font: inherit; font-size: 13px; cursor: pointer; }
.sk-cols button:first-child { border-left: 0; }
.sk-cols button[aria-pressed=true] { background: var(--sk-ink); color: #fff; }

.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sk-chips:empty { display: none; }
.sk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--sk-ink); border-radius: var(--sk-radius); font-size: 13px; color: var(--sk-ink); text-decoration: none; background: var(--sk-white); }
.sk-chip:hover { background: var(--sk-band); }

/* filter form */
.sk-filters { display: grid; gap: 0; }
.sk-fgroup { border-bottom: 1px solid var(--sk-rule); padding: 12px 0; }
.sk-fgroup summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.sk-fgroup summary::-webkit-details-marker { display: none; }
.sk-fgroup summary::after { content: "+"; font-weight: 400; }
.sk-fgroup[open] summary::after { content: "–"; }
.sk-fcats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.sk-fcats a { display: flex; justify-content: space-between; padding: 6px 0; color: var(--sk-ink); text-decoration: none; font-size: 14px; }
.sk-fcats a span { color: var(--sk-muted); font-size: 12.5px; }
.sk-fcats a.is-current { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sk-fprice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sk-fprice label { display: grid; gap: 4px; font-size: 12.5px; color: var(--sk-muted); }
.sk-fprice input { min-height: 40px; padding: 6px 8px; border: 1px solid var(--sk-rule); border-radius: var(--sk-radius); font: inherit; font-size: 14px; width: 100%; }
.sk-fterms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sk-fterm { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--sk-rule); border-radius: var(--sk-radius); font-size: 13.5px; cursor: pointer; background: var(--sk-white); }
.sk-fterm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sk-fterm:has(input:checked) { border-color: var(--sk-ink); box-shadow: inset 0 0 0 1px var(--sk-ink); font-weight: 600; }
.sk-fterm:has(input:focus-visible) { outline: 2px solid var(--sk-gold); outline-offset: 2px; }
.sk-fterm i { width: 16px; height: 16px; border-radius: 3px; background: var(--sw); border: 1px solid rgba(0, 0, 0, .18); }
.sk-factions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }

/* desktop: drawer is a panel under the toolbar, groups in a row */
@media (min-width: 901px) {
	.sk-drawer { display: none; margin: 0 0 16px; padding: 4px 16px 14px; border: 1px solid var(--sk-rule); border-radius: var(--sk-radius); background: var(--sk-white); }
	.sk-drawer.is-open { display: block; }
	.sk-drawer__head { display: none; }
	.sk-drawer .sk-filters { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); column-gap: 24px; }
	.sk-drawer .sk-factions { grid-column: 1 / -1; }
	.sk-drawer-backdrop { display: none !important; }
}
/* mobile: off-canvas drawer */
@media (max-width: 900px) {
	.sk-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); z-index: 1001; background: var(--sk-white); transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; padding: 0 16px 90px; }
	.sk-drawer.is-open { transform: none; }
	.sk-drawer__head { position: sticky; top: 0; background: var(--sk-white); display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sk-rule); z-index: 1; }
	.sk-drawer .sk-factions { position: fixed; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--sk-white); border-top: 1px solid var(--sk-rule); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
	.sk-drawer-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 10, .4); }
	body.sk-drawer-open { overflow: hidden; }
	.sk-cols { display: none; }
	.sk-toolbar__right { margin-left: 0; width: 100%; justify-content: space-between; }
}
.sk-filters-inline { margin-bottom: 16px; }

/* columns switch */
@media (min-width: 901px) {
	ul.products.sk-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
	ul.products.sk-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
	ul.products.sk-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* loading */
[data-sk-results] { transition: opacity .15s; }
[data-sk-results].is-loading { opacity: .45; pointer-events: none; }
.sk-fprice input::placeholder { color: var(--sk-muted); opacity: .7; }
.sk-fsub { list-style: none; margin: 0 0 4px; padding: 0 0 0 14px; border-left: 1px solid var(--sk-rule); }
.sk-fsub a { font-size: 13.5px; padding: 4px 0; }

/* Filter panel polish (2026-11-26):
   +/– sits right after the group name; the chosen category is a light-grey pill (header pill size);
   on desktop a close button sits in the top-right corner, level with the first group name. */
.sk-fgroup summary { justify-content: flex-start; align-items: center; gap: 8px; }
.sk-fgroup summary::after { display: inline-grid; place-items: center; width: 18px; height: 18px; line-height: 1; color: var(--sk-muted); }
.sk-fcats a.is-current { text-decoration: none; font-weight: 600; background: var(--wsc-hover-grey, var(--sk-band, #EBEBEB)); border-radius: 999px; padding: 9px 12px; margin: 0 -12px; }
.sk-fcats a.is-current span { color: var(--sk-ink); }
@media (min-width: 901px) {
	.sk-drawer { position: relative; padding: 4px 64px 14px 28px; }
	.sk-drawer .sk-drawer__head { display: block; position: absolute; top: 7.5px; right: 12px; padding: 0; border: 0; background: none; }
	.sk-drawer .sk-drawer__head strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* QA L3: the chosen-category pill stays inside the drawer/panel padding */
.sk-drawer .sk-fcats { padding: 0 12px; }
/* QA L4: the bottom bar would sit undimmed on top of the drawer backdrop */
body.sk-drawer-open .sk-mbar { display: none !important; }
/* QA M9: the sort list scrolls when the screen is short (landscape phones); max-height set by shop.js */
.sk-dd__list { overflow-y: auto; overscroll-behavior: contain; }
