/* Sanjaari collection pages: tagline, collection chips with their world, sticky filter bar,
   colour swatches, filter drawer and Load more. Loaded only on shop and collection pages. */

.sj-wh__tag { margin: 0.4rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 2.4vw, 2.8rem); line-height: 1.2; color: var(--sj-gold-soft); }

.sj-worlds a small { margin-left: 0.4rem; font-size: 1.05rem; letter-spacing: 0.02em; opacity: 0.6; }
.sj-worlds a.is-on small { opacity: 0.85; }

/* filter bar: sticks under the header while scrolling the grid */
.sj-fbar { position: sticky; top: var(--sj-hdr-h, 0px); z-index: 20; background: var(--sj-ivory); border-bottom: 1px solid var(--sj-line); }
.admin-bar .sj-fbar { top: calc(var(--sj-hdr-h, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .sj-fbar { top: var(--sj-hdr-h, 0px); } }
.sj-fbar__in { display: flex; align-items: center; gap: 1.8rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.sj-fbtn { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.6rem; border: 1px solid var(--sj-green); background: transparent; color: var(--sj-green); font-size: 1.2rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.sj-fbtn .sj-ico { width: 1.6rem; height: 1.6rem; }
.sj-fbtn b { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; border-radius: 999px; background: var(--sj-green); color: #fff; font-size: 1.05rem; letter-spacing: 0; font-weight: 500; }
.sj-fbtn:hover { background: var(--sj-green); color: #fff; }
.sj-fbtn:hover b { background: #fff; color: var(--sj-green); }

.sj-sw { display: flex; align-items: center; gap: 0.9rem; }
.sj-sw__dot { position: relative; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sw, #b9ab98); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.18s; }
.sj-sw__dot--all { background: conic-gradient(#b3261e, #e08a2b, #d9b45e, #6f7d33, #2f6f6c, #7044a0, #df6b9b, #b3261e); }
.sj-sw__dot:hover { transform: scale(1.12); }
.sj-sw__dot.is-on::after { content: ""; position: absolute; inset: -0.4rem; border-radius: 50%; border: 1px solid var(--sj-ink); }

.sj-fbar__n { margin: 0 0 0 auto; font-size: 1.3rem; color: var(--sj-muted); white-space: nowrap; }
.sj-fbar .woocommerce-ordering { margin: 0; float: none; }
.sj-fbar select.orderby { width: auto; height: auto; min-height: 0; border: 0; background-color: transparent; padding: 0.4rem 2.8rem 0.4rem 0; font-size: 1.3rem; color: var(--sj-ink); }

/* filter drawer */
.sj-filter { display: flex; flex-direction: column; flex: 1; }
.sj-filter__g { margin: 0; padding: 2rem 3rem 1.6rem; border: 0; border-bottom: 1px solid var(--sj-line); }
.sj-filter__g legend { float: left; width: 100%; margin-bottom: 1.4rem; }
.sj-check { clear: both; display: flex; align-items: center; gap: 1.2rem; padding: 0.7rem 0; font-size: 1.5rem; cursor: pointer; }
.sj-check input { flex: none; width: 1.8rem; height: 1.8rem; margin: 0; accent-color: var(--sj-green); }
.sj-filter__foot { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2rem 3rem 3rem; background: var(--sj-cream); border-top: 1px solid var(--sj-line); }
.sj-filter__foot .button { width: 100%; justify-content: center; text-align: center; }
.sj-filter .button--ghost, .sj-more .button--ghost { background: transparent; color: var(--sj-green); border: 1px solid var(--sj-green); }
.sj-filter .button--ghost:hover, .sj-more .button--ghost:hover { background: var(--sj-green); color: #fff; }

/* Load more */
.sj-more { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; margin-top: 1rem; }
.sj-more__n { margin: 0; font-size: 1.3rem; color: var(--sj-muted); }
.sj-more .button[aria-busy="true"] { opacity: 0.55; pointer-events: none; }

@media (max-width: 749px) {
	.sj-fbar__in { flex-wrap: wrap; gap: 1.2rem 1.4rem; }
	.sj-sw { order: 3; width: 100%; overflow-x: auto; padding: 0.4rem; }
	.sj-fbar__n { margin-left: auto; }
	.sj-fbar .woocommerce-ordering { order: 2; }
	.sj-filter__g, .sj-filter__foot { padding-left: 2rem; padding-right: 2rem; }
}
