header.top .sbvDeskSearch[hidden],
header.top .tools .sbvDeskAccount[hidden],
header.top .tools .sbvDeskStudio[hidden] { display: none; }

@media screen and (min-width: 901px) {
  .top, .catBand {
    --sbv-ink: #19212b;
    --sbv-muted: #485766;
    --sbv-line: #d6dde3;
    --sbv-surface: #fff;
    --sbv-soft: #f0f2f4;
    --sbv-hover: #e6eaee;
    --sbv-accent: #ffd344;
  }
  html[data-theme="dark"] :is(.top, .catBand) {
    --sbv-ink: #f1f3f5;
    --sbv-muted: #c0cad4;
    --sbv-line: #414b55;
    --sbv-surface: #1a1e23;
    --sbv-soft: #292f36;
    --sbv-hover: #343d46;
  }
  header.top .wrap.nav {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.3vw, 20px);
    min-height: 64px;
  }
  header.top .brand, header.top .tools { flex: 0 0 auto; }
  header.top .tools { display: flex; align-items: center; gap: 8px; }
  header.top .headerSearchTrigger,
  header.top .managedHeaderNav [data-panel-trigger="quick-search"],
  header.top .managedHeaderNav:has(> [data-panel-trigger="quick-search"]:only-child),
  header.top .tools:has(.sbvDeskStudio) .manage { display: none; }
  header.top .sbvDeskSearch[hidden] {
    display: flex;
    align-items: stretch;
    flex: 1 1 360px;
    min-width: 160px;
    max-width: 580px;
    height: 44px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--sbv-line);
    border-radius: 24px;
    background: var(--sbv-surface);
    color: var(--sbv-ink);
  }
  header.top .sbvDeskSearch:focus-within { outline: 2px solid #bc8a15; outline-offset: 2px; }
  header.top .sbvDeskSearch input {
    flex: 1; min-width: 0; width: 100%; margin: 0; padding: 0 17px;
    border: 0; border-radius: 0; outline: none; box-shadow: none;
    background: transparent; color: inherit; font: inherit; font-size: 14px;
  }
  header.top .sbvDeskSearch input::placeholder { color: var(--sbv-muted); opacity: 1; }
  header.top .sbvDeskSearch button {
    display: grid; place-items: center; flex: 0 0 49px; padding: 0;
    border: 0; border-inline-start: 1px solid var(--sbv-line); border-radius: 0;
    background: var(--sbv-soft); color: var(--sbv-ink); cursor: pointer;
  }
  header.top .tools .sbvDeskAccount[hidden],
  header.top .tools .themeSwitch,
  header.top .tools .sbvDeskStudio[hidden] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--sbv-ink); text-decoration: none;
  }
  header.top .tools .sbvDeskAccount { order: 0; }
  header.top .tools .themeSwitch { order: 1; }
  header.top .tools .sbvDeskStudio[hidden] {
    order: 2; width: auto; gap: 8px; padding: 0 15px; border-radius: 22px;
    background: var(--sbv-soft); white-space: nowrap; font-size: 14px; font-weight: 700;
  }
  header.top .tools :is(.themeSwitch,.sbvDeskAccount,.sbvDeskStudio):hover,
  header.top .sbvDeskSearch button:hover { background: var(--sbv-hover); }
  header.top .tools .manage[href*="/account/"] {
    display: inline-flex; align-items: center; gap: 7px; min-height: 42px;
    padding: 0 10px; border-radius: 21px; color: var(--sbv-ink); background: var(--sbv-soft);
  }
  header.top .tools :is(.sbvDeskAccount,.sbvDeskStudio,.themeSwitch):focus-visible,
  .catBand .wrap.chips .chip:focus-visible { outline: 2px solid #bc8a15; outline-offset: 2px; }
  .catBand .wrap.chips {
    display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap;
    gap: 9px; overflow-x: auto; padding-block: 13px; scrollbar-width: thin;
  }
  .catBand .wrap.chips > a.chip {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid transparent;
    border-radius: 8px; background: var(--sbv-soft); color: var(--sbv-ink);
    font-size: 14px; font-weight: 600; line-height: 1.45; white-space: nowrap;
    text-decoration: none;
  }
  .catBand .wrap.chips > a.chip:hover { background: var(--sbv-hover); }
  .catBand .wrap.chips > a.chip.active { background: #20262d; color: #fff; }
  html[data-theme="dark"] .catBand .wrap.chips > a.chip.active { color: #171b20; background: var(--sbv-accent); }
  .catBand .wrap.chips > a.chip.active::before { color: var(--sbv-accent); }
  html[data-theme="dark"] .catBand .wrap.chips > a.chip.active::before { color: inherit; }
  .top .sbvDeskIcon, .catBand .chip::before,
  .top .themeSwitch :is(.sunGlyph,.moonGlyph)::before,
  .top .tools .manage[href*="/account/"]::before {
    content: ""; display: inline-block; vertical-align: middle; flex: 0 0 20px;
    width: 20px; height: 20px; background: currentColor;
    mask: url("sbv-desktop-icons-20261125.svg") no-repeat 0 var(--sbv-icon-y,0px) / 20px 260px;
  }
  .catBand .wrap.chips .chip::before { color: var(--sbv-muted); }
  .catBand .chip[href$="/archive/"] { --sbv-icon-y: 0px; }
  .catBand .chip[href$="/tv/"] { --sbv-icon-y: -20px; }
  .catBand .chip[href$="/home-appliances/"] { --sbv-icon-y: -40px; }
  .catBand .chip[href$="/سیستم-صوتی/"] { --sbv-icon-y: -60px; }
  .catBand .chip[href$="/کولر-گازی/"] { --sbv-icon-y: -80px; }
  .catBand .chip[href$="/مقایسه/"] { --sbv-icon-y: -100px; }
  .catBand .chip[href$="/shorts/"] { --sbv-icon-y: -120px; }
  .catBand .chip[href$="/customers/"] { --sbv-icon-y: -140px; }
  .top .sbvSearchIcon { --sbv-icon-y: -160px; }
  .top .sbvUserIcon, .top .tools .manage[href*="/account/"] { --sbv-icon-y: -180px; }
  .top .sbvStudioIcon { --sbv-icon-y: -200px; }
  .top .moonGlyph { --sbv-icon-y: -220px; }
  .top .sunGlyph { --sbv-icon-y: -240px; }
  .top .themeSwitch :is(.sunGlyph,.moonGlyph) > svg,
  .top .tools .manage[href*="/account/"] > svg,
  .catBand .wrap.chips .chip[href$="/customers/"] > svg { display: none; }
}
