/* Courts Smart Search – change the variables to match the theme */
:root {
  --cs-accent: #0b63ce;
  --cs-accent-dark: #094fa5;
  --cs-accent-soft: #0b63ce14;
  --cs-ink: #1c1d21;
  --cs-muted: #6b6f78;
  --cs-line: #e6e7ea;
  --cs-bg: #ffffff;
  --cs-soft: #f5f6f8;
  --cs-ok: #13804b;
  --cs-warn: #b25e00;
  --cs-radius: 12px;
  --cs-shadow: 0 18px 50px -12px rgba(20, 22, 30, .28), 0 2px 6px rgba(20, 22, 30, .06);
  --csr-line: #dfe1e5;
}
html.cs-lock { overflow: hidden; }
.cs-replaced { display: none !important; }
/* old search bar container: keep the box (theme layout), hide its old content */
.cs-host > :not([data-cs-search]) { display: none !important; }
.cs-host.cs-host-empty { height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden !important; }
.cs-search.cs-mounted { max-width: none; width: 100%; }
.cs-icon-btn { display: none; }

/* ================= search bar (square, matches retail headers) ================= */
.cs-search { position: relative; width: 100%; max-width: 820px; font-size: 15px; color: var(--cs-ink); z-index: 1000; font-family: inherit; }
.cs-search, .cs-search * { box-sizing: border-box; }
/* neutralise theme button styles inside the bar */
.cs-search button { box-shadow: none; text-transform: none; letter-spacing: 0; min-width: 0; min-height: 0; line-height: 1; outline-offset: -2px; }
.cs-form { display: flex; align-items: stretch; height: 48px; margin: 0; padding: 0; background: #fff;
  border: 1px solid rgba(0, 0, 0, .14); border-radius: 6px; overflow: hidden; transition: box-shadow .15s, border-color .15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cs-open .cs-form, .cs-form:focus-within { border-color: var(--cs-accent); box-shadow: 0 0 0 3px var(--cs-accent-soft), 0 2px 8px rgba(0, 0, 0, .08); }
.cs-glass { color: #8a8f98; flex: none; align-self: center; margin-left: 14px; }
.cs-input { flex: 1; min-width: 0; height: auto !important; border: 0 !important; outline: 0 !important; background: transparent !important;
  font: inherit; font-size: 15px; color: inherit; padding: 0 10px !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-appearance: none; appearance: none; }
.cs-input::-webkit-search-cancel-button { display: none; }
.cs-input::placeholder { color: #8a8f98; opacity: 1; }
.cs-clear, .cs-mic, .cs-back { flex: none; display: grid; place-items: center; width: 40px; align-self: center; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: #8a8f98; cursor: pointer; padding: 0; margin: 0; }
.cs-clear[hidden], .cs-mic[hidden] { display: none; }
.cs-clear:hover, .cs-mic:hover { background: var(--cs-soft); color: var(--cs-ink); }
.cs-mic { color: var(--cs-accent); margin-right: 4px; }
.cs-back { display: none; margin-left: 4px; color: var(--cs-ink); }
.cs-search .cs-submit { flex: none; width: 56px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--cs-accent); color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 0; }
.cs-search .cs-submit:hover { background: var(--cs-accent-dark); }
.cs-submit-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cs-submit-icon { display: block; width: 22px; height: 22px; }
.cs-loading .cs-glass { animation: cs-spin .8s linear infinite; }
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* ================= dropdown panel (fixed, positioned by JS) ================= */
.cs-panel { position: fixed; top: 0; left: 0; z-index: 100000; box-sizing: border-box; background: var(--cs-bg); color: var(--cs-ink); font-size: 15px;
  border-radius: var(--cs-radius); box-shadow: var(--cs-shadow); border: 1px solid var(--cs-line); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; text-align: left; line-height: 1.4; }
.cs-panel *, .cs-panel *::before, .cs-panel *::after { box-sizing: border-box; }
.cs-panel[hidden] { display: none; }
.cs-grid { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); }
.cs-col-l { border-right: 1px solid var(--cs-line); padding: 8px 0; background: #fcfcfd; }
.cs-col-r { padding: 8px 0 0; display: flex; flex-direction: column; }
.cs-sec { padding: 4px 0 8px; }
.cs-sec + .cs-sec { border-top: 1px solid var(--cs-line); }
.cs-sec-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--cs-muted); font-weight: 700; }
.cs-link { border: 0; background: none; color: var(--cs-accent); font-size: 12px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; padding: 0; }
.cs-list { list-style: none; margin: 0; padding: 0; }
.cs-row { display: flex; align-items: center; }
.cs-item { color: var(--cs-ink) !important; text-decoration: none !important; }
.cs-q, .cs-list .cs-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 16px; min-width: 0; }
.cs-ic { color: #9a9ea6; display: grid; flex: none; }
.cs-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-txt mark, .cs-pname mark, .csr-name mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.cs-txt em { font-style: normal; color: var(--cs-muted); }
.cs-count { font-size: 12px; color: var(--cs-muted); background: var(--cs-soft); border-radius: 999px; padding: 1px 8px; }
.cs-del, .cs-fill { flex: none; border: 0; background: none; color: #a3a7ae; width: 32px; height: 32px; margin-right: 8px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.cs-del:hover, .cs-fill:hover { background: var(--cs-soft); color: var(--cs-ink); }
.cs-item.is-active, .cs-list .cs-item:hover, .cs-prod:hover { background: var(--cs-accent-soft); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 8px; }
.cs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--cs-soft);
  border: 1px solid transparent; font-size: 13.5px; color: var(--cs-ink); }
.cs-chip svg { color: var(--cs-accent); }
.cs-chip small { color: var(--cs-muted); }
.cs-chip:hover, .cs-chip.is-active { border-color: var(--cs-accent); background: #fff; }
.cs-empty-state { padding: 6px 0; }

.cs-products { list-style: none; margin: 0; padding: 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 2px 4px; }
.cs-wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cs-prod { display: flex; gap: 12px; padding: 10px; border-radius: 10px; align-items: flex-start; }
.cs-thumb { position: relative; flex: none; width: 72px; height: 72px; border-radius: 8px; background: #fff; border: 1px solid var(--cs-line); display: grid; place-items: center; overflow: hidden; }
.cs-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cs-badge { position: absolute; left: 4px; top: 4px; background: var(--cs-accent); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 1px 4px; }
.cs-pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cs-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--cs-muted); font-weight: 600; }
.cs-pname { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-price b { color: var(--cs-ink); font-size: 15px; }
.cs-price s { color: var(--cs-muted); font-size: 12px; margin-left: 4px; }
.cs-stock { font-size: 11.5px; font-weight: 600; }
.cs-stock.is-in { color: var(--cs-ok); }
.cs-stock.is-out { color: var(--cs-muted); }
.cs-all { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 600;
  border-top: 1px solid var(--cs-line); color: var(--cs-accent) !important; background: #fff; }
.cs-all:hover, .cs-all.is-active { background: var(--cs-accent-soft); }
.cs-none { padding: 22px 20px 14px; }
.cs-none-t { font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.cs-none-s { color: var(--cs-muted); margin: 0 0 8px; }
.cs-none .cs-sec-h, .cs-none .cs-chips { padding-left: 0; }

/* narrow panel (tablet portrait, small laptops, mobile): one column, products first */
.cs-panel.cs-narrow .cs-grid { grid-template-columns: minmax(0, 1fr); }
.cs-panel.cs-narrow .cs-col-l { border-right: 0; border-top: 1px solid var(--cs-line); background: #fff; }
.cs-panel.cs-narrow .cs-col-r { order: -1; }
/* wide panel (large desktop, TV) */
.cs-panel.cs-wide .cs-grid { grid-template-columns: 320px minmax(0, 1fr); }
.cs-panel.cs-wide .cs-thumb { width: 84px; height: 84px; }

/* ================= tablet / mobile ================= */
@media (max-width: 991px) {
  .cs-form { height: 44px; }
  .cs-search .cs-submit { width: 48px; }
}
@media (max-width: 767px) {
  .cs-form { height: 42px; border-radius: 6px; }
  .cs-glass { display: none; }
  .cs-input { font-size: 16px; padding: 0 12px !important; } /* 16px: no iOS zoom on focus */
  .cs-mic { width: 34px; height: 34px; margin-right: 2px; }
  .cs-clear { width: 32px; height: 32px; }
  .cs-search .cs-submit { width: 46px; }
  /* full-screen search while typing */
  .cs-search.cs-mobile { position: fixed; inset: 0; max-width: none; background: #fff; z-index: 99990; padding: 10px; display: block; }
  .cs-mobile .cs-back { display: grid; }
  .cs-mobile .cs-form { height: 46px; }
  /* phones: only a search icon in the header (like the current site); tap = full-screen search */
  .cs-search:not(.cs-mobile) { width: auto !important; display: inline-block; vertical-align: middle; color: inherit; }
  .cs-search:not(.cs-mobile) .cs-form { display: none; }
  .cs-search:not(.cs-mobile) .cs-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
    border: 0; background: transparent; color: inherit; cursor: pointer; }
}
.cs-panel.cs-m { border-radius: 0; border: 0; border-top: 1px solid var(--cs-line); box-shadow: none; }
.cs-panel.cs-m .cs-all { position: sticky; bottom: 0; }

/* ================= large screens & TVs ================= */
@media (min-width: 1600px) {
  .cs-search { max-width: 960px; font-size: 16px; }
  .cs-form { height: 52px; }
  .cs-search .cs-submit { width: 62px; }
  .cs-panel { font-size: 16px; }
  .cs-pname { font-size: 14.5px; }
  .cs-price b { font-size: 16px; }
}
@media (min-width: 2200px) {
  .cs-search { max-width: 1100px; font-size: 18px; }
  .cs-form { height: 60px; }
  .cs-input { font-size: 18px; }
  .cs-search .cs-submit { width: 72px; }
  .cs-submit-icon { width: 26px; height: 26px; }
  .cs-panel { font-size: 18px; }
  .cs-pname { font-size: 16px; }
  .cs-thumb { width: 96px !important; height: 96px !important; }
  .cs-sec-h { font-size: 13px; }
}

/* ================= voice overlay ================= */
.cs-voice { position: fixed; inset: 0; background: rgba(15, 16, 20, .55); backdrop-filter: blur(3px); z-index: 100050; display: grid; place-items: center; padding: 16px; }
.cs-voice[hidden] { display: none; }
.cs-voice-box { position: relative; background: #fff; border-radius: 20px; width: min(440px, 100%); padding: 36px 28px 24px; text-align: center; box-shadow: var(--cs-shadow); }
.cs-voice-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cs-soft); cursor: pointer; display: grid; place-items: center; }
.cs-voice-mic { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--cs-accent); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; cursor: pointer; position: relative; }
.is-listening .cs-voice-mic::before, .is-listening .cs-voice-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cs-accent); opacity: .35; animation: cs-pulse 1.6s ease-out infinite; z-index: -1; }
.is-listening .cs-voice-mic::after { animation-delay: .8s; }
@keyframes cs-pulse { from { transform: scale(1); opacity: .4; } to { transform: scale(1.9); opacity: 0; } }
.cs-voice-status { font-weight: 600; margin: 0 0 6px; }
.cs-voice-text { min-height: 1.6em; font-size: 22px; font-weight: 700; margin: 0 0 10px; color: var(--cs-ink); }
.cs-voice-hint { color: var(--cs-muted); font-size: 13px; margin: 0 0 16px; }
.cs-voice-langs { display: inline-flex; background: var(--cs-soft); border-radius: 999px; padding: 4px; gap: 4px; }
.cs-voice-langs button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--cs-muted); }
.cs-voice-langs button.is-on { background: #fff; color: var(--cs-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ================= results page ================= */
.csr { color: var(--cs-ink); font-size: 15px; padding-bottom: 40px; }
.csr-head { margin: 8px 0 14px; }
.csr-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; text-transform: none; line-height: 1.2; }
.csr-title span { color: var(--cs-accent); }
.csr-meta { color: var(--cs-muted); margin: 0; }
.csr-meta em { font-style: normal; font-weight: 700; color: var(--cs-ink); }
.csr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); margin-bottom: 18px; position: sticky; top: 0; background: #fff; z-index: 20; }
.csr-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.csr-chip { border: 1px solid var(--cs-line); background: var(--cs-soft); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--cs-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.csr-chip:hover { border-color: var(--cs-accent); }
.csr-chip span { color: var(--cs-muted); font-size: 15px; line-height: 1; }
.csr-clear-all { border: 0; background: none; color: var(--cs-accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.csr-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: var(--cs-muted); font-size: 14px; }
.csr-sort select { border: 1px solid var(--cs-line); border-radius: 8px; height: 38px; padding: 0 30px 0 10px; font: inherit; color: var(--cs-ink); background: #fff; }
.csr-view { display: inline-flex; border: 1px solid var(--cs-line); border-radius: 8px; overflow: hidden; }
.csr-view button { border: 0; background: #fff; width: 38px; height: 36px; color: #a3a7ae; cursor: pointer; display: grid; place-items: center; }
.csr-view button.is-on { background: var(--cs-soft); color: var(--cs-ink); }
.csr-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.csr-open-filters { display: none !important; }

.csr-side { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 4px; }
.csr-side-h, .csr-side-f { display: none; }
.csr-facet { border-bottom: 1px solid var(--cs-line); padding: 4px 0; }
.csr-facet summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; cursor: pointer; user-select: none; }
.csr-facet summary::-webkit-details-marker { display: none; }
.csr-facet summary > span:first-child { flex: 1; }
.csr-chev { width: 8px; height: 8px; border-right: 2px solid var(--cs-muted); border-bottom: 2px solid var(--cs-muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.csr-facet[open] .csr-chev { transform: rotate(-135deg); margin-top: 4px; }
.csr-sel { background: var(--cs-accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.csr-fbody { padding: 0 0 12px; }
.csr-opts { list-style: none; margin: 0; padding: 0; }
.csr-opts li[hidden] { display: none; }
.csr-check, .csr-switch, .csr-radio { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-weight: 400; margin: 0; color: var(--cs-ink); }
.csr-check input, .csr-switch input, .csr-radio input { position: absolute; opacity: 0; pointer-events: none; }
.csr-box { width: 18px; height: 18px; border: 2px solid #c3c6cc; border-radius: 5px; flex: none; position: relative; transition: .12s; }
.csr-check input:checked + .csr-box { background: var(--cs-accent); border-color: var(--cs-accent); }
.csr-check input:checked + .csr-box::after { content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.csr-check input:focus-visible + .csr-box, .csr-switch input:focus-visible + .csr-sw, .csr-radio input:focus-visible + .csr-dot { outline: 2px solid var(--cs-accent); outline-offset: 2px; }
.csr-check input:disabled ~ * { opacity: .4; }
.csr-lbl { flex: 1; min-width: 0; }
.csr-n { color: var(--cs-muted); font-size: 12.5px; }
.csr-sw { width: 34px; height: 20px; border-radius: 999px; background: #d3d6db; position: relative; flex: none; transition: .15s; }
.csr-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.csr-switch input:checked + .csr-sw { background: var(--cs-accent); }
.csr-switch input:checked + .csr-sw::after { left: 16px; }
.csr-dot { width: 18px; height: 18px; border: 2px solid #c3c6cc; border-radius: 50%; flex: none; position: relative; }
.csr-radio input:checked + .csr-dot { border-color: var(--cs-accent); }
.csr-radio input:checked + .csr-dot::after { content: ""; position: absolute; inset: 3px; background: var(--cs-accent); border-radius: 50%; }
.csr-more { border: 0; background: none; color: var(--cs-accent); font-weight: 600; padding: 6px 0 0; cursor: pointer; font-size: 13.5px; }
.csr-fsearch { width: 100%; border: 1px solid var(--cs-line); border-radius: 8px; height: 36px; padding: 0 10px; margin-bottom: 6px; font: inherit; }
.csr-slider { position: relative; height: 28px; margin: 4px 8px 8px; }
.csr-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--csr-line); }
.csr-slider input[type=range] { position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: 4px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 20px; }
.csr-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--cs-accent); cursor: grab; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.csr-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--cs-accent); cursor: grab; }
.csr-slider input[type=range]::-webkit-slider-runnable-track { background: none; }
.csr-rinputs { display: flex; align-items: flex-end; gap: 8px; }
.csr-rinputs label { flex: 1; margin: 0; font-size: 11.5px; color: var(--cs-muted); font-weight: 400; }
.csr-rinputs input { width: 100%; height: 36px; border: 1px solid var(--cs-line); border-radius: 8px; padding: 0 8px; font: inherit; color: var(--cs-ink); }
.csr-dash { padding-bottom: 8px; color: var(--cs-muted); }
.csr-cur { padding-bottom: 9px; font-size: 13px; color: var(--cs-muted); }

.csr-main { min-width: 0; transition: opacity .15s; }
.is-loading .csr-main { opacity: .45; pointer-events: none; }
.csr-grid { display: grid; gap: 16px; }
.csr-grid.is-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.csr-card { background: #fff; border: 1px solid var(--cs-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.csr-card:hover { box-shadow: 0 10px 30px -10px rgba(20, 22, 30, .25); transform: translateY(-2px); }
.csr-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #fff; padding: 14px; }
.csr-img img { max-width: 100%; max-height: 100%; object-fit: contain; height: auto; }
.csr-card.is-oos .csr-img img { opacity: .55; }
.csr-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.csr-badge { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 7px; color: #fff; }
.csr-badge.is-sale { background: var(--cs-accent); }
.csr-badge.is-new { background: var(--cs-ink); }
.csr-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid #f1f2f4; }
.csr-brand { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cs-muted); font-weight: 700; }
.csr-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 0; text-transform: none; }
.csr-name a { color: var(--cs-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.csr-name a:hover { color: var(--cs-accent); }
.csr-feats { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--cs-muted); }
.csr-feats li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csr-feats li::before { content: "•"; margin-right: 6px; color: #c3c6cc; }
.csr-buy { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 4px; }
.csr-price b { display: block; font-size: 19px; color: var(--cs-accent); font-weight: 800; line-height: 1.1; }
.csr-price s { font-size: 13px; color: var(--cs-muted); }
.csr-stock { font-size: 12px; font-weight: 700; white-space: nowrap; }
.csr-stock.is-in { color: var(--cs-ok); }
.csr-stock.is-low { color: var(--cs-warn); }
.csr-stock.is-out { color: var(--cs-muted); }
.csr-add { margin: 0; }
.csr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none !important; border: 2px solid transparent; width: auto; }
.csr-card .csr-btn { width: 100%; }
.csr-btn-primary { background: var(--cs-accent); color: #fff !important; }
.csr-btn-primary:hover { background: var(--cs-accent-dark); }
.csr-btn-ghost { background: var(--cs-soft); color: var(--cs-ink) !important; }
.csr-btn-ghost:hover { border-color: var(--cs-ink); }
.csr-btn-outline { background: #fff; border-color: var(--cs-ink); color: var(--cs-ink) !important; }
.csr-btn-outline:hover { background: var(--cs-ink); color: #fff !important; }

/* list view */
.csr-grid.is-list { grid-template-columns: 1fr; }
.csr-grid.is-list .csr-card { flex-direction: row; }
.csr-grid.is-list .csr-img { width: 200px; flex: none; }
.csr-grid.is-list .csr-body { border-top: 0; border-left: 1px solid #f1f2f4; display: grid; grid-template-columns: 1fr 200px; grid-template-areas: "brand buy" "name buy" "feats act"; column-gap: 20px; align-content: start; }
.csr-grid.is-list .csr-brand { grid-area: brand; }
.csr-grid.is-list .csr-name { grid-area: name; font-size: 16px; }
.csr-grid.is-list .csr-feats { grid-area: feats; }
.csr-grid.is-list .csr-buy { grid-area: buy; flex-direction: column; align-items: flex-end; margin: 0; }
.csr-grid.is-list .csr-add, .csr-grid.is-list .csr-body > .csr-btn { grid-area: act; align-self: end; }

.csr-foot { text-align: center; padding: 30px 0 0; }
.csr-progress-t { color: var(--cs-muted); margin: 0 0 8px; font-size: 14px; }
.csr-progress { width: 220px; height: 4px; background: var(--csr-line); border-radius: 4px; margin: 0 auto 16px; overflow: hidden; }
.csr-progress span { display: block; height: 100%; background: var(--cs-accent); }
.csr-loadmore { min-width: 220px; }
.csr-zero { text-align: center; padding: 30px 16px 10px; color: var(--cs-muted); }
.csr-zero-ic { color: #c3c6cc; margin-bottom: 8px; }
.csr-dym a { color: var(--cs-accent); font-weight: 700; }
.csr-zero-trend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.csr-sub { font-size: 20px; font-weight: 800; margin: 30px 0 14px; text-transform: none; }
.csr-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.csr-sk { height: 360px; border-radius: 14px; background: linear-gradient(90deg, #f2f3f5 25%, #e9eaee 37%, #f2f3f5 63%); background-size: 400% 100%; animation: csr-sh 1.3s ease infinite; }
@keyframes csr-sh { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.csr-overlay { display: none; }
.csr.is-zero .csr-side, .csr.is-zero .csr-bar { display: none; }
.csr.is-zero .csr-layout { grid-template-columns: 1fr; }

@media (min-width: 1600px) {
  .csr { font-size: 16px; }
  .csr-layout { grid-template-columns: 300px 1fr; gap: 36px; }
  .csr-grid.is-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
  .csr-name { font-size: 15.5px; }
  .csr-price b { font-size: 21px; }
}
@media (min-width: 2200px) {
  .csr { font-size: 18px; }
  .csr-title { font-size: 34px; }
  .csr-layout { grid-template-columns: 340px 1fr; }
  .csr-grid.is-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
  .csr-name { font-size: 18px; }
  .csr-price b { font-size: 24px; }
  .csr-btn { height: 48px; font-size: 16px; }
  .csr-sort select, .csr-view button { height: 44px; }
}
@media (max-width: 991px) {
  .csr-layout { grid-template-columns: 1fr; }
  .csr-open-filters { display: inline-flex !important; height: 38px; border-width: 1px; }
  .csr-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); max-height: none; background: #fff; z-index: 10020; padding: 0 16px; transform: translateX(-105%); transition: transform .2s; display: flex; flex-direction: column; }
  .is-filters-open .csr-side { transform: none; box-shadow: var(--cs-shadow); }
  .csr-side-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--cs-line); position: sticky; top: 0; background: #fff; z-index: 1; font-size: 18px; }
  .csr-side-h button { border: 0; background: var(--cs-soft); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; }
  .csr-side-f { display: block; position: sticky; bottom: 0; background: #fff; padding: 12px 0; margin-top: auto; border-top: 1px solid var(--cs-line); }
  .csr-side-f .csr-btn { width: 100%; }
  .is-filters-open .csr-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 16, 20, .45); z-index: 10010; }
  .csr-chips { order: 5; flex-basis: 100%; }
  .csr-sort span { display: none; }
}
@media (max-width: 575px) {
  .csr-title { font-size: 21px; }
  .csr-grid.is-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .csr-body { padding: 10px; }
  .csr-price b { font-size: 16px; }
  .csr-buy { flex-direction: column; align-items: flex-start; gap: 2px; }
  .csr-btn { height: 38px; font-size: 13px; padding: 0 8px; }
  .csr-feats { display: none; }
  .csr-view { display: none; }
  .csr-grid.is-list .csr-card { flex-direction: column; }
  .csr-grid.is-list .csr-img { width: auto; }
}

/* very small phones */
@media (max-width: 359px) {
  .csr-grid.is-grid { grid-template-columns: 1fr; }
  .cs-mic { display: none; }
}

/* ================= isolation from the old bar's / theme's CSS =================
   The bar sits inside the theme's old search container, whose rules (e.g. "#nav-search button",
   ".prsr-block-top input") must not restyle it. */
.cs-search .cs-clear, .cs-search .cs-mic, .cs-search .cs-back {
  background: transparent !important; border: 0 !important; border-radius: 50% !important; box-shadow: none !important;
  padding: 0 !important; text-indent: 0 !important; font-size: 0 !important; }
.cs-search .cs-clear, .cs-search .cs-back { color: #8a8f98 !important; }
.cs-search .cs-back { color: var(--cs-ink) !important; }
.cs-search .cs-mic { color: var(--cs-accent) !important; }
.cs-search .cs-clear:hover, .cs-search .cs-mic:hover { background: var(--cs-soft) !important; }
.cs-search .cs-submit { background: var(--cs-accent) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; padding: 0 !important; text-indent: 0 !important; }
.cs-search .cs-submit:hover { background: var(--cs-accent-dark) !important; }
.cs-search .cs-icon-btn { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.cs-search:not(.cs-mobile) .cs-icon-btn { color: inherit !important; }
.cs-search .cs-form { float: none !important; position: relative !important; }
.cs-search .cs-input { width: auto !important; float: none !important; line-height: normal !important; color: var(--cs-ink) !important; text-transform: none !important; }
.cs-search svg { display: block; max-width: none; }
