/* Selabaya v7.2 — distinctive category icons and balanced desktop header.
   Patch for v7.1. All overrides stay above the v7.0 mobile breakpoint.
   No fonts, libraries or third-party image requests are required. */
@media (min-width:900px) {

  /* Keep the desktop header within the same compact centered page width
     as Selabaya's main hero, rather than stretching search edge to edge. */
  .sl-topline .sl-topline-inner,
  .mg-topline .mg-topline-inner {
    max-width:1240px!important;
  }
  .sl-header .sl-nav {
    max-width:1240px!important;
    grid-template-columns:max-content max-content minmax(190px, 385px) max-content!important;
    justify-content:space-between!important;
    column-gap:clamp(9px,1.2vw,18px)!important;
  }
  .mg-header .mg-nav {
    max-width:1240px!important;
    grid-template-columns:max-content minmax(190px, 345px) max-content!important;
    justify-content:space-between!important;
    column-gap:clamp(9px,1.2vw,18px)!important;
  }
  .sl-header .sl-search,
  .mg-header .mg-search {
    width:100%!important;
    max-width:385px!important;
    min-width:0!important;
    justify-self:center!important;
  }
  .mg-header .mg-search {max-width:345px!important;}
  .sl-header .sl-search input,
  .mg-header .mg-search input {min-width:0!important;}
  .sl-header .sl-actions,
  .mg-header .mg-actions {min-width:0!important;justify-self:end!important;}
  /* Wider names in listings remain readable; no arbitrary icon glyphs. */
  .sl-header .sb71-category-copy strong {letter-spacing:0!important;}
  .sl-header .sb71-category-icon svg {fill:none!important;stroke:currentColor!important;}
  @media (max-width:1200px) {
    .sl-header .sl-nav {grid-template-columns:max-content max-content minmax(175px, 1fr) max-content!important;}
    .mg-header .mg-nav {grid-template-columns:max-content minmax(175px, 1fr) max-content!important;}
    .sl-header .sl-search,.mg-header .mg-search {max-width:360px!important;}
  }
  @media (max-width:1000px) {
    .sl-header .sl-nav,.mg-header .mg-nav {column-gap:8px!important;}
    .sl-header .sl-search,.mg-header .mg-search {max-width:290px!important;}
    .sl-header .sl-cat-btn {padding-inline:10px!important;}
  }

  .sl-header .sb71-category-icon.sb72-category-icon {
    width:42px;height:42px;flex-basis:42px;
    background:#e7f7f1;color:#087d69;border:1px solid rgba(8,125,105,.09);
    border-radius:12px;transition:background .16s,color .16s,transform .16s;
  }
  .sl-header .sb71-category-icon.sb72-category-icon svg {
    width:21px!important;height:21px!important;stroke-width:1.8;
  }
  .sl-header .sb71-cat-item:hover .sb72-category-icon,
  .sl-header .sb71-cat-item:focus-visible .sb72-category-icon {
    transform:scale(1.04);
  }
  /* Functional color grouping; palette remains intentionally restrained. */
  .sl-header .sb72-category-icon[data-kind="fashion"],
  .sl-header .sb72-category-icon[data-kind="jewellery"],
  .sl-header .sb72-category-icon[data-kind="decor"] {background:#fff0f5;color:#b45080;border-color:#f5dce6}
  .sl-header .sb72-category-icon[data-kind="health"],
  .sl-header .sb72-category-icon[data-kind="baby"],
  .sl-header .sb72-category-icon[data-kind="pets"] {background:#fff2e8;color:#af622e;border-color:#f5e0ca}
  .sl-header .sb72-category-icon[data-kind="electronics"],
  .sl-header .sb72-category-icon[data-kind="phones"],
  .sl-header .sb72-category-icon[data-kind="security"] {background:#eaf3ff;color:#4274b7;border-color:#d6e6f9}
  .sl-header .sb72-category-icon[data-kind="books"],
  .sl-header .sb72-category-icon[data-kind="office"],
  .sl-header .sb72-category-icon[data-kind="jobs"] {background:#f2edff;color:#7555ac;border-color:#e2d7f9}
  .sl-header .sb72-category-icon[data-kind="construction"],
  .sl-header .sb72-category-icon[data-kind="equipment"],
  .sl-header .sb72-category-icon[data-kind="vehicles"] {background:#edf3f8;color:#4a6f89;border-color:#dce6ee}
  .sl-header .sb72-category-icon[data-kind="sports"],
  .sl-header .sb72-category-icon[data-kind="outdoors"],
  .sl-header .sb72-category-icon[data-kind="agriculture"],
  .sl-header .sb72-category-icon[data-kind="property"],
  .sl-header .sb72-category-icon[data-kind="furniture"],
  .sl-header .sb72-category-icon[data-kind="services"] {background:#e7f8f1;color:#078e71;border-color:#d3eee1}
  .sl-header .sb71-shortcut.sb72-shortcut .sb72-shortcut-icon {display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:#e4f6ee;color:#077c68}
  .sl-header .sb71-shortcut.sb72-shortcut .sb72-shortcut-icon svg{width:16px!important;height:16px!important;stroke-width:1.85}
  .sl-header .sb71-shortcut.sb72-shortcut:hover .sb72-shortcut-icon{background:#d6efe5;color:#006f5e}
}
@media (min-width:900px) and (prefers-reduced-motion:reduce) {.sl-header .sb72-category-icon{transition:none!important}}
