/* TakShat mobile navigation 1.0.0: original menus, filters and GET routes retained. */
.tsmn-search,.tsmn-filterbar,.tsmn-nav-glyph{display:none}
.tsmn-dialog:not([open]){display:none}
@media screen and (max-width:760px){
  .pro-store .pro-header .pro-header-main{display:grid;direction:ltr;grid-template-columns:88px minmax(0,1fr) 88px;gap:6px;min-height:76px;padding-block:8px}
  .pro-store .pro-header-main>.pro-header-tools:first-child{grid-column:1;grid-row:1;justify-self:start;justify-content:flex-start;direction:ltr}
  .pro-store .pro-header-main>.pro-header-end{grid-column:3;grid-row:1;justify-self:end;direction:rtl;gap:0}
  .pro-store .pro-header-main>.pro-logo{grid-column:2;grid-row:1;justify-self:center;direction:rtl;min-width:0;max-width:100%;margin:0;gap:0;text-align:center}
  .pro-store .pro-header-main>.pro-logo img{display:block;width:auto;max-width:100%;height:48px;object-fit:contain;border-radius:0}
  .pro-store .pro-header-main>.pro-logo:has(>img)>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .pro-store .pro-header-main>.pro-logo b{display:block;font-size:22px;letter-spacing:-.05em;line-height:1.4}
  .pro-store .pro-header-main>.pro-logo small{font-size:6px;letter-spacing:.12em}
  .pro-store .pro-header .pro-header-tools>:is(.pro-icon-btn,.pro-account,.pro-cart-button){display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;padding:0;border-radius:12px;color:var(--green,#153f35)}
  .pro-store .pro-header .pro-header-tools>[data-dialog="search-dialog"]{display:none}
  .pro-store .pro-header .pro-menu-toggle{background:#f2f5f0;border:1px solid #e6ebe4;transition:background .2s,transform .2s}
  .pro-store .pro-header .pro-menu-toggle[aria-expanded=true]{background:#e5eee5;transform:scale(.96)}
  .pro-store .pro-header .pro-cart-button b{inset:2px 1px auto auto;min-width:15px;height:15px;font-size:9px}
  .pro-store #tsmn-search{display:flex;direction:rtl;align-items:center;gap:6px;width:calc(100% - 32px);margin:0 auto 14px;padding:0;border:0;border-bottom:1px solid #cbd5cb;border-radius:0;background:transparent;transition:border-color .2s}
  .pro-store #tsmn-search:focus-within{border-bottom-color:var(--green,#153f35);box-shadow:0 1px 0 var(--green,#153f35)}
  .pro-store #tsmn-search input{flex:1;min-width:0;width:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;margin:0;padding:9px 2px;min-height:44px;font-size:16px;line-height:1.5;color:var(--ink,#173a2d)}
  .pro-store #tsmn-search input::placeholder{font-size:12px;color:#778377;opacity:1}
  .pro-store #tsmn-search button{display:grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;border:0;background:transparent;color:#5c725f;border-radius:8px;padding:0}
  .pro-store #tsmn-search button .icon{width:19px;height:19px}
  .pro-store #tsmn-search button:focus-visible{outline:2px solid var(--green);outline-offset:-2px}

  /* Native modal dialog provides focus containment and an inert background. */
  html.tsmn-locked,html.tsmn-locked>body.pro-store{overflow:hidden!important;overscroll-behavior:none}
  .pro-store .tsmn-dialog{box-sizing:border-box;position:fixed;padding:0;border:0;font-family:inherit;color:#173a2d;direction:rtl;overflow:hidden;max-height:none;max-width:none;box-shadow:12px 0 60px #102b2430}
  .pro-store .tsmn-dialog[open]{display:flex;flex-direction:column}
  .pro-store .tsmn-dialog::backdrop{background:rgba(12,31,25,.42);backdrop-filter:blur(3px);opacity:0;transition:opacity .28s ease}
  .pro-store .tsmn-dialog.is-visible::backdrop{opacity:1}
  .pro-store .tsmn-dialog .tsmn-close{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;border:1px solid #dbe6da;border-radius:50%;background:#ffffffb8;color:#274b35;padding:0;cursor:pointer}
  .pro-store .tsmn-dialog button:focus-visible,.pro-store .tsmn-dialog a:focus-visible,.pro-store .tsmn-dialog summary:focus-visible{outline:2px solid var(--green,#153f35);outline-offset:3px}
  .pro-store .tsmn-icon{display:block;flex:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
  .pro-store .tsmn-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:16px}

  /* Left drawer covers exactly three quarters of the viewport, even in RTL. */
  .pro-store .tsmn-menu{inset:0 auto 0 0;margin:0;width:75vw;height:100vh;height:100dvh;border-radius:0 24px 24px 0;background:linear-gradient(155deg,#f2f6ec 0%,#f9faf5 45%,#fffdf8 100%);transform:translateX(-104%);transition:transform .36s cubic-bezier(.22,.8,.25,1)}
  .pro-store .tsmn-menu.is-visible{transform:translateX(0)}
  .pro-store .tsmn-menu-head{position:relative;isolation:isolate;flex:none;padding:calc(18px + env(safe-area-inset-top,0px)) 20px 20px;border-bottom:1px solid #d9e4d5;background:radial-gradient(ellipse at 15% 10%,#d8e7d3 0,transparent 70%);overflow:hidden}
  .pro-store .tsmn-menu-head>.tsmn-close{position:relative;margin-inline-start:auto;z-index:1}
  .pro-store .tsmn-menu-head h2{position:relative;margin:16px 0 4px;font-size:19px;font-weight:700;line-height:1.7;letter-spacing:0}
  .pro-store .tsmn-menu-head p{position:relative;margin:0;font-size:11px;color:#6a7e65;line-height:1.9}
  .pro-store .tsmn-emblem{position:absolute;left:20px;bottom:8px;color:#73986a;opacity:.12;z-index:-1;transform:rotate(-18deg)}
  .pro-store .tsmn-emblem .tsmn-icon{width:125px;height:125px;stroke-width:.7}
  .pro-store .tsmn-menu .tsmn-scroll{padding:14px 14px calc(20px + env(safe-area-inset-bottom,0px))}
  .pro-store .tsmn-menu #pro-nav{display:flex;flex-direction:column;gap:5px;width:100%;max-height:none;min-height:0;overflow:visible;margin:0;padding:0;align-items:stretch}
  .pro-store .tsmn-menu #pro-nav>a,.pro-store .tsmn-menu .pro-mega>summary{display:flex;align-items:center;gap:11px;padding:12px 10px;min-height:48px;border:1px solid transparent;border-radius:12px;white-space:normal;line-height:1.8;font-size:13px;color:#294833;text-decoration:none;transition:background .2s,border-color .2s;overflow-wrap:anywhere}
  .pro-store .tsmn-menu #pro-nav>a:after{display:none}
  .pro-store .tsmn-menu #pro-nav>a:hover,.pro-store .tsmn-menu .pro-mega>summary:hover{background:#e8f0e3;border-color:#d5e3ce}
  .pro-store .tsmn-menu #pro-nav>a[aria-current=page]{background:#e3eddb;border-color:#d1dfc7;font-weight:700}
  .pro-store .tsmn-menu #pro-nav>a>.tsmn-icon,.pro-store .tsmn-menu .pro-mega>summary>.tsmn-icon{color:#618357}
  .pro-store .tsmn-menu .pro-mega>summary>span:last-child{margin-inline-start:auto}
  .pro-store .tsmn-menu .pro-mega[open]>summary{background:#e8f0e3}
  .pro-store .tsmn-menu .pro-mega-panel{position:static;display:block;border:0;border-radius:12px;padding:4px 12px 10px;background:#ffffff80;box-shadow:none}
  .pro-store .tsmn-menu .pro-mega-panel>div:first-child{display:none}
  .pro-store .tsmn-menu .pro-category-menu{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
  .pro-store .tsmn-menu .pro-category-menu a{padding:11px 5px;min-height:44px;font-size:12px;gap:8px;line-height:1.8;overflow-wrap:anywhere;border-color:#e2e9dd}
  .pro-store .tsmn-menu .nav-spark{display:none}
  .pro-store .tsmn-menu-links{display:grid;grid-template-columns:1fr;gap:8px;border-top:1px solid #dce5d5;padding-top:16px;margin-top:18px}
  .pro-store .tsmn-menu-links a{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;background:#fff9;border:1px solid #e1e7d9;border-radius:12px;font-size:12px;line-height:1.7}

  /* Filters move into one bottom sheet; the original form still submits normally. */
  .pro-store .tsmn-filterbar{display:flex;justify-content:flex-start;align-items:center;gap:10px;margin:0 0 16px}
  .pro-store .tsmn-filter-trigger{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:9px 14px;border:1px solid #d8e2d6;border-radius:12px;background:#fff;color:#315139;font:inherit;font-size:12px;cursor:pointer}
  .pro-store .tsmn-filter-trigger .tsmn-icon{width:18px;height:18px}
  .pro-store .tsmn-filter-badge{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:50%;font-size:11px;background:#e6eee1;color:#365b34}
  .pro-store .shop-layout.tsmn-filter-ready{grid-template-columns:minmax(0,1fr)}
  .pro-store #tsmn-results{scroll-margin-top:20px}
  .pro-store .tsmn-filter{inset:auto 0 0;margin:0 auto;width:min(100% - 16px,520px);height:auto;max-height:90vh;max-height:90dvh;border-radius:22px 22px 0 0;background:#fff;transform:translateY(104%);transition:transform .32s cubic-bezier(.22,.8,.25,1);box-shadow:0 -16px 70px #122c2533}
  .pro-store .tsmn-filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;flex:none;border-bottom:1px solid #e5ebe1;background:#f7f9f4}
  .pro-store .tsmn-filter-head h2{font-size:17px;margin:0;line-height:1.8;letter-spacing:0}
  .pro-store .tsmn-filter-head p{font-size:11px;color:#74816c;line-height:1.8;margin:2px 0 0}
  .pro-store .tsmn-filter.is-visible{transform:translateY(0)}
  .pro-store .tsmn-filter .filters{position:static;width:100%;padding:18px;margin:0;border:0;border-radius:0;box-shadow:none;min-width:0;background:transparent}
  .pro-store .tsmn-filter .filters>h3{display:none}
  .pro-store .tsmn-filter .filters form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0}
  .pro-store .tsmn-filter .filters form>label{margin:0;font-size:12px;line-height:1.8;min-width:0}
  .pro-store .tsmn-filter .filters :is(input:not([type=checkbox]),select){width:100%;min-width:0;max-width:100%;min-height:44px;font-size:16px;margin:5px 0 0;border:1px solid #d8e2d4;background:#fff;border-radius:9px;padding:9px 10px;color:#274431}
  .pro-store .tsmn-filter .filters .check{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 10px;border:1px solid #e4eadf;border-radius:10px;background:#fafbf8}
  .pro-store .tsmn-filter .filters .check input{flex:none;width:18px;height:18px;margin:0;accent-color:var(--green,#153f35)}
  .pro-store .tsmn-filter .filter-price{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pro-store .tsmn-filter .filter-price>label{min-width:0;font-size:12px}
  .pro-store .tsmn-filter .filters form>.btn,.pro-store .tsmn-filter .filters form>.reset{display:none}
  .pro-store .tsmn-filter-foot{display:flex;align-items:center;gap:12px;flex:none;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e3eade;background:#fff;box-shadow:0 -5px 20px #273b2506}
  .pro-store .tsmn-filter-foot>button{flex:1;min-width:0;min-height:48px;border:0;border-radius:11px;background:var(--green,#153f35);color:#fff;font:inherit;font-size:13px;padding:10px 15px;cursor:pointer}
  .pro-store .tsmn-filter-foot>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;font-size:12px;text-decoration:underline;text-underline-offset:4px;color:#627459}
}
@media screen and (max-width:760px) and (prefers-reduced-motion:reduce){
  .pro-store .tsmn-dialog,.pro-store .tsmn-dialog::backdrop{transition:none}
}
