/* /search + category listing (redesign 2026-09-25). Scoped to .wjs / #wjs_sheet only.
   Brand: orange #F08A24 / #C2610F, gold #F9B233; green only for success. */
.wjs, #wjs_sheet {
  --wjs-o: #F08A24; --wjs-o2: #C2610F; --wjs-gold: #F9B233; --wjs-o-soft: #FFF4E8;
  --wjs-ink: #1d2127; --wjs-muted: #6b7280; --wjs-line: #eceef1; --wjs-bg: #f7f7f8; --wjs-card: #fff;
  --wjs-r: 14px;
  color: var(--wjs-ink);
}
.wjs { background: var(--wjs-bg); padding-bottom: 32px; }
/* One search bar on this page: the header's universal-search boxes are hidden here only. */
body:has(#wjs) .global-header-search, body:has(#wjs) .global-header-search-mobile { display: none !important; }

.wjs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---- Sticky search + chips ---- */
.wjs-top { position: sticky; top: var(--wjs-top, 0px); z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--wjs-line); padding: 12px 0 10px; }
.wjs-searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e3e5e8; border-radius: 999px; padding: 4px 4px 4px 16px; box-shadow: 0 2px 10px rgba(16,24,40,.05); transition: border-color .15s, box-shadow .15s; max-width: 760px; }
.wjs-searchbar:focus-within { border-color: var(--wjs-o); box-shadow: 0 0 0 4px rgba(240,138,36,.14); }
.wjs-searchbar__icon { color: #9aa0a8; flex: 0 0 auto; }
.wjs-searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; height: 40px; color: var(--wjs-ink); }
.wjs-searchbar input::-webkit-search-cancel-button { cursor: pointer; }
.wjs-searchbar__btn { flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--wjs-o); color: #fff; font-weight: 700; font-size: 14px; height: 40px; padding: 0 22px; cursor: pointer; transition: background .15s; }
.wjs-searchbar__btn:hover, .wjs-searchbar__btn:focus-visible { background: var(--wjs-o2); }

.wjs-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wjs-chips::-webkit-scrollbar { display: none; }
.wjs-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #dfe2e6; background: #fff; color: #30343b; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.wjs-chip:hover { border-color: #c9ccd1; color: #30343b; }
.wjs-chip.is-on { background: var(--wjs-o-soft); border-color: var(--wjs-o); color: var(--wjs-o2); }
.wjs-chip.is-busy { opacity: .65; pointer-events: none; }
.wjs-chip--all { border-color: #30343b; }
.wjs-chip__n { min-width: 18px; height: 18px; border-radius: 999px; background: var(--wjs-o); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.wjs-caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.wjs-chip--link { height: 34px; }

/* ---- Heading ---- */
.wjs-main { padding-top: 18px; }
.wjs-head { margin-bottom: 8px; }
.wjs-title { font-size: 22px; line-height: 1.25; font-weight: 800; margin: 0; color: var(--wjs-ink); letter-spacing: -.01em; }
.wjs-info { margin: 4px 0 0; color: var(--wjs-muted); font-size: 14px; max-width: 760px; }

/* ---- Status strip (small circles, WhatsApp style) ---- */
.wjs-status { margin: 12px 0 6px; }
.wjs-status__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wjs-muted); margin-bottom: 6px; }
.wjs-status__row { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.wjs-status__row::-webkit-scrollbar { display: none; }
.wjs-st { flex: 0 0 auto; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--wjs-ink); }
.wjs-st__ring { position: relative; width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; background: linear-gradient(160deg,#F6C48E,#F0A45A); }
.wjs-st__ring.wj-ring--orange { background: linear-gradient(160deg,#F9B233,#F08A24 50%,#C2610F); }
.wjs-st__ring.wj-ring--gold { background: linear-gradient(160deg,#FFE7A3,#F9B233 35%,#D99A1E 65%,#FFD66B); }
.wjs-st__in { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: #eceef1; }
.wjs-st__in img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.wjs-st__in img[src] { opacity: 1; }
.wjs-st__pro { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 999px; background: linear-gradient(135deg,#FFD66B,#F9B233); color: #5A3A05; font-size: 8.5px; font-weight: 900; letter-spacing: .04em; line-height: 14px; border: 1.5px solid #fff; }
.wjs-st__name { max-width: 66px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #454b54; }
.wjs-st:hover .wjs-st__name { color: var(--wjs-o2); }

/* ---- Promoted row ---- */
.wjs-promoted { margin: 14px 0 6px; }
.wjs-rowhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wjs-rowhead h2 { font-size: 16px; font-weight: 800; margin: 0; color: var(--wjs-ink); }
.wjs-adtag { font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: #FDEBC4; color: #7A4A00; }

/* ---- Count + sort ---- */
.wjs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.wjs-count { font-size: 14px; font-weight: 700; color: #454b54; }
.wjs-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--wjs-muted); }
.wjs-sort select { appearance: none; -webkit-appearance: none; border: 1px solid #dfe2e6; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2330343b' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 7px 32px 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--wjs-ink); cursor: pointer; }
.wjs-sort select:focus { outline: 0; border-color: var(--wjs-o); box-shadow: 0 0 0 3px rgba(240,138,36,.15); }
.wjs-geo-note { margin: -4px 0 12px; font-size: 13px; color: #8a5a14; background: #FFF6E5; border: 1px solid #F7DDA8; border-radius: 10px; padding: 8px 12px; }

/* ---- Grid: 4 / 3 / 2 columns, one-column list on phones ---- */
.wjs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1199.98px) { .wjs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .wjs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.wjs-card { position: relative; display: flex; flex-direction: column; background: var(--wjs-card); border: 1px solid var(--wjs-line); border-radius: var(--wjs-r); overflow: hidden; transition: box-shadow .2s, transform .2s; min-width: 0; }
.wjs-card:hover { box-shadow: 0 10px 28px rgba(16,24,40,.09); transform: translateY(-2px); }
.wjs-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #f0f1f3; overflow: hidden; }
.wjs-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wjs-card__badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--wjs-gold); color: #4a2d00; font-size: 11px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.wjs-card__fav { position: absolute; top: 8px; right: 8px; z-index: 2; }
.wjs-card__fav i { width: 32px; height: 32px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #5b6068; cursor: pointer; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.wjs-card__fav i.mark-unfav { color: #fff; background: #e0532c; }
.wjs-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.wjs-card__seller { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--wjs-ink); min-width: 0; }
.wjs-card__avatar { position: relative; flex: 0 0 auto; width: 28px; height: 28px; }
.wjs-card__avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; background: #eceef1; }
.wjs-tick { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--wjs-o); border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; }
.wjs-tick--chip { position: static; width: 16px; height: 16px; border: 0; }
.wjs-card__who { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wjs-card__who strong { font-weight: 700; }
.wjs-card__handle { color: var(--wjs-muted); font-weight: 500; }
.wjs-card__seller:hover .wjs-card__who strong { color: var(--wjs-o2); }
.wjs-card__title { margin: 0; font-size: 14.5px; line-height: 1.38; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.wjs-card__title a { color: var(--wjs-ink); text-decoration: none; }
.wjs-card__title a:hover { color: var(--wjs-o2); }
.wjs-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 700; color: var(--wjs-ink); min-height: 18px; }
.wjs-card__rating { display: inline-flex; align-items: center; gap: 4px; }
.wjs-card__dist { display: inline-flex; align-items: center; gap: 4px; color: var(--wjs-muted); font-weight: 600; }
.wjs-card__dist::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c7cbd1; }
.wjs-muted { color: var(--wjs-muted); font-weight: 500; }
.wjs-card__price { margin-top: auto; padding-top: 4px; font-size: 15.5px; font-weight: 800; color: var(--wjs-o2); font-variant-numeric: tabular-nums; }
.wjs-card__price .wjs-muted { font-size: 12.5px; font-weight: 600; }
.wjs-card__more { font-size: 12.5px; font-weight: 700; color: var(--wjs-o2); text-decoration: none; }
.wjs-card__more:hover { text-decoration: underline; color: var(--wjs-o2); }

/* Skeletons */
.wjs-skel { background: #fff; border: 1px solid var(--wjs-line); border-radius: var(--wjs-r); overflow: hidden; padding-bottom: 14px; }
.wjs-skel__img { aspect-ratio: 16 / 10; }
.wjs-skel__l { height: 12px; margin: 12px 14px 0; border-radius: 6px; }
.wjs-skel__l--s { width: 45%; }
.wjs-skel__img, .wjs-skel__l { background: linear-gradient(90deg, #f0f1f3 25%, #f8f8f9 50%, #f0f1f3 75%); background-size: 200% 100%; animation: wjs-shim 1.2s linear infinite; }
@keyframes wjs-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .wjs-skel__img, .wjs-skel__l { animation: none; } .wjs-card, .wjs-card:hover { transition: none; transform: none; } }

/* Empty state */
.wjs-empty { text-align: center; background: #fff; border: 1px solid var(--wjs-line); border-radius: var(--wjs-r); padding: 36px 20px; margin-top: 4px; }
.wjs-empty__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--wjs-o-soft); color: var(--wjs-o2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.wjs-empty h2 { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: var(--wjs-ink); }
.wjs-empty p { color: var(--wjs-muted); margin: 0 auto 16px; max-width: 440px; font-size: 14px; }
.wjs-empty__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.wjs-empty__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

/* Buttons (this page only; the site-wide recolour is a separate task) */
.wjs-btn, #wjs_sheet .wjs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.wjs-btn--solid { background: var(--wjs-o); border: 1.5px solid var(--wjs-o); color: #fff; }
.wjs-btn--solid:hover, .wjs-btn--solid:focus-visible { background: var(--wjs-o2); border-color: var(--wjs-o2); color: #fff; }
.wjs-btn--outline { background: #fff; border: 1.5px solid var(--wjs-o); color: var(--wjs-o2); }
.wjs-btn--outline:hover, .wjs-btn--outline:focus-visible { background: var(--wjs-o-soft); color: var(--wjs-o2); }
.wjs-btn--ghost { background: transparent; border: 1.5px solid transparent; color: #454b54; }
.wjs-btn--ghost:hover { color: var(--wjs-o2); }
.wjs-more { display: flex; flex-direction: column; align-items: center; margin-top: 22px; }
#wjs_sentinel { width: 100%; height: 1px; }
.wjs [hidden], #wjs_sheet [hidden] { display: none !important; }

/* ---- Filter sheet ---- */
#wjs_sheet { --bs-offcanvas-width: 420px; }
#wjs_sheet.offcanvas-bottom { height: 86vh; border-radius: 18px 18px 0 0; }
#wjs_sheet .offcanvas-header { border-bottom: 1px solid var(--wjs-line); padding: 16px 20px; }
#wjs_sheet .offcanvas-title { font-size: 18px; font-weight: 800; margin: 0; }
#wjs_sheet .offcanvas-body { padding: 4px 20px 20px; }
.wjs-sec { padding: 16px 0; border-bottom: 1px solid var(--wjs-line); border-radius: 8px; transition: background .4s; }
.wjs-sec:last-child { border-bottom: 0; }
.wjs-sec.is-focus { background: var(--wjs-o-soft); }
.wjs-sec h3 { font-size: 14.5px; font-weight: 800; margin: 0 0 10px; color: var(--wjs-ink); }
.wjs-lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--wjs-muted); margin: 10px 0 4px; }
.wjs-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#wjs_sheet .form-select, #wjs_sheet .form-control { border-radius: 10px; min-height: 42px; font-size: 14px; }
#wjs_sheet .form-select:focus, #wjs_sheet .form-control:focus { border-color: var(--wjs-o); box-shadow: 0 0 0 3px rgba(240,138,36,.16); }
#wjs_sheet .form-check { margin: 6px 0; }
#wjs_sheet .form-check-input:checked { background-color: var(--wjs-o); border-color: var(--wjs-o); }
#wjs_sheet .form-check-input:focus { border-color: var(--wjs-o); box-shadow: 0 0 0 3px rgba(240,138,36,.16); }
.wjs-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.wjs-seg button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #dfe2e6; background: #fff; font-weight: 700; font-size: 13px; color: #30343b; cursor: pointer; }
.wjs-seg button.is-on { background: var(--wjs-o-soft); border-color: var(--wjs-o); color: var(--wjs-o2); }
.wjs-sheet__foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--wjs-line); background: #fff; }
.wjs-sheet__foot .wjs-btn--solid { flex: 1; }

/* ---- Phones: one-column list ---- */
@media (max-width: 767.98px) {
  .wjs-top { padding: 10px 0 8px; }
  .wjs-searchbar { padding-left: 12px; }
  .wjs-searchbar input { height: 38px; font-size: 16px; }
  .wjs-searchbar__btn { height: 38px; padding: 0 16px; }
  .wjs-title { font-size: 19px; }
  .wjs-grid { grid-template-columns: 1fr; gap: 10px; }
  .wjs-card { flex-direction: row; align-items: stretch; }
  .wjs-card:hover { transform: none; }
  .wjs-card__media { flex: 0 0 118px; width: 118px; aspect-ratio: auto; min-height: 118px; }
  .wjs-card__badge { top: 6px; left: 6px; font-size: 10px; padding: 2px 7px; }
  .wjs-card__fav { top: auto; bottom: 8px; left: 82px; right: auto; }
  .wjs-card__fav i { width: 28px; height: 28px; font-size: 14px; }
  .wjs-card__body { padding: 10px 12px; gap: 4px; }
  .wjs-card__title { font-size: 14px; min-height: 0; }
  .wjs-card__avatar, .wjs-card__avatar img { width: 22px; height: 22px; }
  .wjs-tick { width: 12px; height: 12px; }
  .wjs-card__who { font-size: 12.5px; }
  .wjs-card__price { font-size: 14.5px; }
  .wjs-skel { display: grid; grid-template-columns: 118px 1fr; grid-template-rows: auto auto 1fr; padding: 0; }
  .wjs-skel__img { grid-row: 1 / 4; aspect-ratio: auto; height: 118px; }
  .wjs-skel__l { margin: 14px 12px 0; }
  .wjs-bar { margin: 10px 0; }
  .wjs-sort span { display: none; }
}
.wjs-card__price--ask { font-size: 13.5px; color: var(--wjs-o2); }
body:has(#wjs_sheet.show) #sofia-wa-pill, body:has(#wjs_sheet.showing) #sofia-wa-pill { display: none !important; }
.wjs-title__in { color: var(--wjs-muted); font-weight: 700; }
