/* Stock mobile categories v1 - scoped, no external dependencies. */

  #smcCategoriesV1 { --smc-paper:#fff; --smc-ink:#30343c; --smc-sub:#74777d; --smc-line:#eeefef; --smc-soft:#f7f7f5; --smc-red:#b5232e; --smc-red-soft:#fcf2f2; --smc-highlight:#fff; --smc-shadow:#25303b20; padding:4px 12px 0; background-color:transparent; width:100%; max-width:680px; margin:0 auto; display:none; font-family:var(--font-main,"StockIRANSansX",Tahoma,sans-serif); color:var(--smc-ink); }
  #smcCategoriesV1 * { box-sizing:border-box; }
  #smcCategoriesV1 .smc-section { padding:20px 14px 14px; }
  #smcCategoriesV1 .smc-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:2px; row-gap:8px; }
  #smcCategoriesV1 .smc-cat { appearance:none; border:0; background:transparent; padding:5px 1px 8px; color:var(--smc-ink); font:inherit; text-decoration:none; cursor:pointer; display:flex; align-items:center; flex-direction:column; gap:6px; min-width:0; min-height:102px; border-radius:16px; -webkit-tap-highlight-color:transparent; transition:background 160ms ease,color 160ms ease; touch-action:manipulation; }
  #smcCategoriesV1 .smc-cat[aria-expanded="true"] { background:var(--smc-red-soft); color:var(--smc-red); }
  #smcCategoriesV1 .smc-label { font-size:11.5px; line-height:1.8; font-weight:500; max-width:100%; text-align:center; }
  #smcCategoriesV1 .smc-art { width:58px; height:57px; position:relative; display:grid; place-items:center; isolation:isolate; flex-shrink:0; }
  #smcCategoriesV1 .smc-art::before { content:""; position:absolute; width:43px; height:43px; inset:8px auto auto 8px; background:var(--smc-wash); border-radius:16px 20px 13px 20px; transform:rotate(-9deg); z-index:-2; }
  #smcCategoriesV1 .smc-art::after { content:""; position:absolute; width:33px; height:5px; border-radius:50%; background:var(--smc-shadow); filter:blur(3px); bottom:3px; left:13px; z-index:-1; }
  #smcCategoriesV1 .smc-object { width:38px; height:38px; position:relative; display:grid; place-items:center; transform-origin:50% 80%; filter:drop-shadow(0 1px 0 var(--smc-highlight)) drop-shadow(0 2px 1px var(--smc-shadow)); }
  #smcCategoriesV1 .smc-object>svg { width:38px; height:38px; stroke:var(--smc-edge); stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; fill:none; overflow:visible; }
  #smcCategoriesV1 .smc-object>svg * { transform-box:fill-box; transform-origin:center; }
  #smcCategoriesV1 [data-smc-category="tools"] { --smc-wash:#f9e9e5; --smc-body:#e5aaa1; --smc-edge:#9c5048; }
  #smcCategoriesV1 [data-smc-category="industry"] { --smc-wash:#e9edf5; --smc-body:#bcc8df; --smc-edge:#536682; }
  #smcCategoriesV1 [data-smc-category="digital"] { --smc-wash:#e5eff7; --smc-body:#afd0e8; --smc-edge:#3d6d90; }
  #smcCategoriesV1 [data-smc-category="home"] { --smc-wash:#e8f0e8; --smc-body:#b2cdb5; --smc-edge:#4d7757; }
  #smcCategoriesV1 [data-smc-category="vehicles"] { --smc-wash:#e8f2ed; --smc-body:#acd3bf; --smc-edge:#477b63; }
  #smcCategoriesV1 [data-smc-category="estate"] { --smc-wash:#f7eee2; --smc-body:#e2c5a5; --smc-edge:#94704b; }
  #smcCategoriesV1 [data-smc-category="services"] { --smc-wash:#e8f1f1; --smc-body:#b4d4d2; --smc-edge:#4c7e7a; }
  #smcCategoriesV1 [data-smc-category="personal"] { --smc-wash:#f6eae6; --smc-body:#dfb5a6; --smc-edge:#8d6356; }
  #smcCategoriesV1 [data-smc-category="leisure"] { --smc-wash:#f0ebf7; --smc-body:#c9b8df; --smc-edge:#77608e; }
  #smcCategoriesV1 [data-smc-category="social"] { --smc-wash:#f7e9ed; --smc-body:#e1b5c4; --smc-edge:#965f72; }
  #smcCategoriesV1 [data-smc-category="food"] { --smc-wash:#f7efdf; --smc-body:#e6cc9e; --smc-edge:#987a46; }
  #smcCategoriesV1 [data-smc-category="grocery"] { --smc-wash:#edf2df; --smc-body:#c6d5a0; --smc-edge:#72844e; }
  #smcCategoriesV1 [data-smc-category="stores"] { --smc-wash:#f7e8e3; --smc-body:#e6b4a4; --smc-edge:#a06654; }
  #smcCategoriesV1 [data-smc-category="jobs"] { --smc-wash:#e8edf6; --smc-body:#b7c6e0; --smc-edge:#5b6f92; }
  #smcCategoriesV1 .smc-all { --smc-wash:var(--smc-soft); --smc-body:#e4e3e1; --smc-edge:#84878e; }
  #smcCategoriesV1 .smc-all .smc-art::before { border-radius:16px; transform:rotate(0); }
  #smcCategoriesV1 .smc-all .smc-object>svg { width:31px; height:31px; stroke-width:1.6; }
  #smcCategoriesV1 .smc-extra[hidden],#smcCategoriesV1 .smc-detail[hidden] { display:none; }
  #smcCategoriesV1 .smc-detail { border-top:1px solid var(--smc-line); background:var(--smc-soft); padding:15px 19px 18px; }
  #smcCategoriesV1 .smc-detail-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
  #smcCategoriesV1 .smc-detail-title { font-size:13px; font-weight:600; }
  #smcCategoriesV1 .smc-close { width:44px; height:44px; padding:13px; cursor:pointer; border:0; border-radius:10px; background:var(--smc-paper); color:var(--smc-sub); display:grid; place-items:center; }
  #smcCategoriesV1 .smc-close svg { width:16px; height:16px; }
  #smcCategoriesV1 .smc-subcats { display:flex; flex-wrap:wrap; gap:8px; }
  #smcCategoriesV1 .smc-subcat { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; color:var(--smc-sub); background:var(--smc-paper); border:1px solid var(--smc-line); border-radius:9px; padding:7px 10px; font-size:11px; line-height:1.7; }
  #smcCategoriesV1 .smc-selected-announcement { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  #smcCategoriesV1 .smc-playing .smc-object { animation:smc-small-tilt 440ms cubic-bezier(.2,.7,.25,1) both; }
  #smcCategoriesV1 [data-smc-category="industry"].smc-playing .smc-object { animation-name:smc-gear-turn; }
  #smcCategoriesV1 [data-smc-category="vehicles"].smc-playing .smc-object { animation-name:smc-small-drive; }
  #smcCategoriesV1 [data-smc-category="digital"].smc-playing .smc-object,#smcCategoriesV1 [data-smc-category="home"].smc-playing .smc-object,#smcCategoriesV1 [data-smc-category="estate"].smc-playing .smc-object { animation-name:smc-small-lift; }
  #smcCategoriesV1 [data-smc-category="services"].smc-playing .smc-object { animation-name:smc-tool-turn; }
  #smcCategoriesV1 [data-smc-category="food"].smc-playing .smc-object,#smcCategoriesV1 [data-smc-category="social"].smc-playing .smc-object { animation-name:smc-small-lift; }
  #smcCategoriesV1 .smc-all.smc-playing .smc-object { animation-name:smc-small-lift; }
  @keyframes smc-small-tilt { 0%,100%{transform:rotate(0)} 35%{transform:rotate(-5deg)} 65%{transform:rotate(2deg)} }
  @keyframes smc-gear-turn { 0%,100%{transform:rotate(0)} 50%{transform:rotate(18deg)} }
  @keyframes smc-small-drive { 0%,100%{transform:translateX(0)} 45%{transform:translateX(-3px)} }
  @keyframes smc-small-lift { 0%,100%{transform:translateY(0)} 45%{transform:translateY(-2.5px)} }
  @keyframes smc-tool-turn { 0%,100%{transform:rotate(0)} 45%{transform:rotate(-8deg)} }
  @media (max-width:380px) { #smcCategoriesV1 {padding:4px 8px 0} #smcCategoriesV1 .smc-section {padding:18px 9px 10px} #smcCategoriesV1 .smc-label {font-size:11px} #smcCategoriesV1 .smc-cat {min-height:103px} #smcCategoriesV1 .smc-art {width:53px} }
  @media (prefers-reduced-motion:reduce) { #smcCategoriesV1 *,#smcCategoriesV1 *::before,#smcCategoriesV1 *::after { animation:none!important; transition:none!important; } }
html[data-theme="dark"] #smcCategoriesV1 {--smc-paper:#202124;--smc-ink:#f2f0ed;--smc-sub:#a9adb5;--smc-line:#36383b;--smc-soft:#292b2f;--smc-red:#f38b94;--smc-red-soft:#3b292d;--smc-highlight:#c8cbd1;--smc-shadow:#00000030}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="tools"] {--smc-wash:#392d2a;--smc-body:#b67f78;--smc-edge:#f1c2b9}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="industry"] {--smc-wash:#2e323d;--smc-body:#7e8fae;--smc-edge:#d1dbee}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="digital"] {--smc-wash:#253544;--smc-body:#638fad;--smc-edge:#bee1fa}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="home"] {--smc-wash:#2d3930;--smc-body:#75927a;--smc-edge:#d0e4cf}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="vehicles"] {--smc-wash:#293b34;--smc-body:#6f9b86;--smc-edge:#c2e7d4}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="estate"] {--smc-wash:#3e3429;--smc-body:#b59a7c;--smc-edge:#e6ceb2}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="services"] {--smc-wash:#283a3b;--smc-body:#789e9b;--smc-edge:#c5e6e3}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="personal"] {--smc-wash:#3d302d;--smc-body:#ac877a;--smc-edge:#e6c7bc}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="leisure"] {--smc-wash:#342c3f;--smc-body:#917ea8;--smc-edge:#dfcfef}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="social"] {--smc-wash:#3f2932;--smc-body:#a97d8d;--smc-edge:#edbdcf}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="food"] {--smc-wash:#3d3628;--smc-body:#af9465;--smc-edge:#eed8b1}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="grocery"] {--smc-wash:#333b27;--smc-body:#8e9e70;--smc-edge:#d8e6b7}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="stores"] {--smc-wash:#402c29;--smc-body:#b38779;--smc-edge:#f1c6b7}
html[data-theme="dark"] #smcCategoriesV1 [data-smc-category="jobs"] {--smc-wash:#2c3240;--smc-body:#7c8da9;--smc-edge:#cbdaf2}
html[data-theme="dark"] #smcCategoriesV1 .smc-all {--smc-body:#7c8087;--smc-edge:#d3d5da}

@media(max-width:860px){#smcCategoriesV1{display:block}}
#smcCategoriesV1 [hidden]{display:none!important}
#smcCategoriesV1 .smc-object>svg>.smc-solid{fill:var(--smc-body);stroke:none;opacity:.82}
#smcCategoriesV1 .smc-detail-title{margin:0;font-family:inherit;outline-offset:4px}
#smcCategoriesV1 .smc-cat:focus-visible,#smcCategoriesV1 .smc-close:focus-visible,#smcCategoriesV1 .smc-subcat:focus-visible{outline:2px solid var(--smc-red);outline-offset:2px}
#smcCategoriesV1 .smc-subcat:first-child{color:var(--smc-red);font-weight:600}
#smcCategoriesV1 .smc-subcat:hover{border-color:var(--smc-red)}
