/* TechMobile — shop, product category and product search. Ported from the Astro category and search pages and Filters component.
   Loaded only on this view; every selector is scoped to .pg-shop. */

.pg-shop .desk-inline{display:inline}
.pg-shop .head{padding-top:20px}
.pg-shop .title-row{display:flex;align-items:flex-end;justify-content:space-between;margin-top:12px;padding-bottom:16px;border-bottom:2px solid var(--tm-navy)}
.pg-shop h1{font-size:var(--tm-t-page);font-weight:800;display:flex;align-items:baseline;gap:12px;line-height:1.2}
.pg-shop .count{font-size:15px;font-weight:500;color:var(--tm-text-2)}
/* Category description: two lines under the title, then cut. The link sits over the end of the last
   line on the page's own background; the gap after the text keeps a short text clear of it. The full
   text and the questions are at the foot of the page. Right-to-left only. */
.pg-shop .tdesc{position:relative;margin:14px 0 0;font-size:15px;line-height:1.6;max-height:3.2em;overflow:hidden;color:var(--tm-text-2)}
.pg-shop .td-gap{display:inline-block;width:6.5em;height:1px}
.pg-shop .td-more{position:absolute;bottom:0;inset-inline-end:0;padding-inline-start:28px;background:linear-gradient(to left,transparent,#fff 24px);font-weight:700;color:var(--tm-sky-text);text-decoration:underline;text-underline-offset:2px}
.pg-shop .about{margin-top:48px;scroll-margin-top:16px}
.pg-shop .about .sec-head:not(:first-child){margin-top:32px}
/* full description across the page; with questions, they sit beside it on the left and stay in view */
.pg-shop .about.has-faq{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,400px);gap:48px;align-items:start}
.pg-shop .about-faq{min-width:0}
.pg-shop .about.has-faq .about-faq{position:sticky;top:calc(var(--tm-stuck) + 16px)}
.pg-shop .about:not(.has-faq) .about-faq{margin-top:32px}
.pg-shop .about-t{font-size:15px;line-height:1.7;color:var(--tm-text-2)}
.pg-shop .about-t p+p{margin-top:10px}
.pg-shop .about-t h3{margin:24px 0 8px;font-size:var(--tm-t-h3);font-weight:800;line-height:1.3;color:var(--tm-navy)}
.pg-shop .about-t h3:first-child{margin-top:0}
.pg-shop .about-t li+li{margin-top:4px}
.pg-shop .about-t ul+p,.pg-shop .about-t ol+p{margin-top:10px}
.pg-shop .about-t ul,.pg-shop .about-t ol{padding-inline-start:1.3em;margin-top:8px}
.pg-shop .about-t ul{list-style:disc}
.pg-shop .faq{border:1px solid var(--tm-border);border-radius:8px;overflow:hidden}
.pg-shop .faq details{border-bottom:1px solid var(--tm-border);padding:0 18px}
.pg-shop .faq details:last-child{border-bottom:0}
.pg-shop .faq summary{font-weight:700;font-size:15px;list-style:none;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}
.pg-shop .faq summary::-webkit-details-marker{display:none}
.pg-shop .pm{width:12px;height:12px;position:relative;flex:none;color:var(--tm-text-2)}
.pg-shop .pm::before,.pg-shop .pm::after{content:"";position:absolute;background:currentColor;left:0;top:5px;width:12px;height:2px;transition:transform 200ms var(--tm-ease-out)}
.pg-shop .pm::after{transform:rotate(90deg)}
.pg-shop .faq details[open] .pm::after{transform:rotate(0)}
.pg-shop .faq details p{margin:0;padding:0 0 14px;font-size:14px;color:var(--tm-text-2);line-height:1.6;animation:tm-fade 200ms var(--tm-ease-out)}
@media (max-width:1199px){.pg-shop .about.has-faq{grid-template-columns:minmax(0,1fr);gap:0}.pg-shop .about.has-faq .about-faq{position:static;margin-top:32px}}
@media (max-width:899px){.pg-shop .about{margin-top:32px}.pg-shop .faq details{padding:0 14px}.pg-shop .faq summary{font-size:14px;min-height:48px}}
.pg-shop .sort{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--tm-text-2);margin:0}
.pg-shop .sort label{display:flex;align-items:center;gap:8px}
.pg-shop .sel{position:relative;display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid var(--tm-border);border-radius:6px;color:var(--tm-navy);font-weight:600;background:#fff}
.pg-shop .sel select{appearance:none;-webkit-appearance:none;border:0;background:transparent;font:600 14px var(--tm-font);color:var(--tm-navy);padding:0;outline:0;cursor:pointer;height:38px}
.pg-shop .sel select:focus-visible{outline:2px solid var(--tm-sky);outline-offset:2px;border-radius:4px}
.pg-shop .sel svg{pointer-events:none}

/* inline search field (search results only) */
.pg-shop .sbox{display:flex;gap:8px;max-width:640px;margin:16px 0 0}
.pg-shop .sbox input{flex:1;min-width:0;height:48px;border:1px solid var(--tm-border);border-radius:8px;padding:0 14px;font:400 16px var(--tm-font);color:var(--tm-navy);outline:0}
.pg-shop .sbox input:focus{border-color:var(--tm-sky);box-shadow:0 0 0 2px var(--tm-sky-tint)}
.pg-shop .sbox .btn{width:48px;height:48px;padding:0;flex:none}

.pg-shop .wrap.body{display:grid;grid-template-columns:260px 1fr;gap:40px;padding-top:8px;padding-bottom:48px}
.pg-shop .main{min-width:0}

/* active filter chips */
.pg-shop .chips{display:flex;align-items:center;gap:8px;padding:14px 0;flex-wrap:wrap}
.pg-shop .chips[hidden]{display:none}
.pg-shop .chip-list{display:contents}
.pg-shop .chips .lbl{font-size:13px;color:var(--tm-text-2)}
.pg-shop .chip{display:flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid var(--tm-navy);border-radius:6px;font:600 13px var(--tm-font);background:#fff;color:var(--tm-navy);white-space:nowrap;transition:transform 150ms var(--tm-ease-out),opacity 150ms var(--tm-ease-out);animation:tm-enter 150ms var(--tm-ease-out) both}
.pg-shop .chip .x{display:flex}
.pg-shop .clear{display:flex;align-items:center;font:500 13px var(--tm-font);color:var(--tm-sky-text);margin-inline-start:4px;padding:0;min-height:30px}

/* grid */
.pg-shop .plp{grid-template-columns:repeat(4,1fr)}
.pg-shop .plp .item.in{animation:tm-enter 200ms var(--tm-ease-out) both}
.pg-shop [data-swap=results]{transition:opacity 150ms var(--tm-ease-out)}
.pg-shop.busy [data-swap=results]{opacity:.55}
.pg-shop .empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:56px 0;text-align:center}
.pg-shop .empty p{font-size:16px;font-weight:600}
.pg-shop .empty .btn{height:44px;padding:0 24px;font-size:14px}
.pg-shop .hint{font-size:14px;color:var(--tm-text-2)}
.pg-shop .elinks{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}

/* Every product is on the page: cards below the fold are not laid out or painted until they come near the screen. */
.pg-shop .grid.plp .card{content-visibility:auto;contain-intrinsic-size:auto 420px}
/* load more + real pagination links (only past the per-page cap) */
.pg-shop .more{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:32px}
.pg-shop .more[hidden]{display:none}
.pg-shop .shown{font-size:13px;color:var(--tm-text-2)}
.pg-shop .bar{width:240px;height:3px;background:var(--tm-border);border-radius:2px;overflow:hidden}
.pg-shop .bar .fill{height:100%;background:var(--tm-navy);transition:width 300ms var(--tm-ease-out)}
.pg-shop .load{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 32px;border:1px solid var(--tm-navy);border-radius:6px;background:#fff;color:var(--tm-navy);font:700 15px var(--tm-font);transition:transform 120ms var(--tm-ease-out)}
.pg-shop .load.is-loading{opacity:.6;pointer-events:none}
.pg-shop .pager{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.pg-shop .pager .page-numbers{display:flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 8px;border:1px solid var(--tm-border);border-radius:6px;font:600 14px var(--tm-font);color:var(--tm-navy);background:#fff}
.pg-shop .pager .current{background:var(--tm-navy);border-color:var(--tm-navy);color:#fff}
.pg-shop .pager .dots{border-color:transparent;background:transparent}

/* "why buy" box */
.pg-shop .why{border:1px solid var(--tm-border);border-radius:8px;padding:20px;display:flex;flex-direction:column;gap:12px;background:var(--tm-panel-2);color:var(--tm-navy)}
.pg-shop .wt{font-weight:800;font-size:16px}
.pg-shop .wi{display:flex;gap:10px;font-size:14px;line-height:1.4}
.pg-shop .wi svg{flex:none;margin-top:2px;color:var(--tm-navy);stroke-width:2}
.pg-shop .side .side-why{margin-top:20px}

/* filters */
.pg-shop .filters{color:var(--tm-navy);display:flex;flex-direction:column;font-size:14px}
.pg-shop .filters .grp{border-bottom:1px solid var(--tm-border);padding:16px 0}
.pg-shop .filters header{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;margin-bottom:12px}
.pg-shop .filters .chev{color:var(--tm-text-2);display:flex}
.pg-shop .filters .price{padding:6px 8px 0;margin:0}
.pg-shop .filters .range{position:relative;height:4px;background:var(--tm-border);border-radius:2px;margin:10px 0 18px}
.pg-shop .filters .range .fill{position:absolute;right:0;left:0;top:0;bottom:0;background:var(--tm-navy)}
.pg-shop .filters .knob{position:absolute;top:50%;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid var(--tm-navy)}
.pg-shop .filters .knob.a{right:0;transform:translate(50%,-50%)}
.pg-shop .filters .knob.b{left:0;transform:translate(-50%,-50%)}
.pg-shop .filters .inputs{display:flex;gap:8px;align-items:center}
.pg-shop .filters .inputs label{flex:1;display:flex;align-items:center;border:1px solid var(--tm-border);border-radius:6px;height:38px;padding:0 10px;gap:4px;color:var(--tm-text-2)}
.pg-shop .filters .inputs input{width:100%;min-width:0;border:0;outline:0;font:500 16px var(--tm-font);color:var(--tm-navy);background:transparent}
.pg-shop .filters .dash{color:var(--tm-muted)}
.pg-shop .filters .list{display:flex;flex-direction:column;gap:10px}
.pg-shop .filters .row{display:flex;align-items:center;gap:10px;min-height:24px;position:relative;color:var(--tm-navy);text-decoration:none}
.pg-shop .filters .box{width:18px;height:18px;border-radius:4px;background:#fff;border:1px solid var(--tm-muted);display:flex;align-items:center;justify-content:center;color:#fff;flex:none;transition:background 120ms,border-color 120ms}
.pg-shop .filters .box svg{opacity:0}
.pg-shop .filters .row.on .box{background:var(--tm-navy);border-color:var(--tm-navy)}
.pg-shop .filters .row.on .box svg{opacity:1}
.pg-shop .filters .row:focus-visible{outline:2px solid var(--tm-sky);outline-offset:2px;border-radius:4px}
.pg-shop .filters .lbl{flex:1}
.pg-shop .filters .cnt{color:var(--tm-muted);font-size:12px}

/* mobile filter / sort bar and sheets: closed by default, opened by JS (class shown/open) or by the :target link without JS */
.pg-shop .mbar{display:none}
.pg-shop .sheet-wrap{display:none}

@media (max-width:1199px) and (min-width:900px){
  .pg-shop .wrap.body{grid-template-columns:220px 1fr;gap:24px}
  .pg-shop .plp{grid-template-columns:repeat(3,1fr)}
}

@media (max-width:899px){
  .pg-shop .desk-inline{display:none}
  .pg-shop .head{padding-top:14px}
  .pg-shop .title-row{display:block;margin-top:8px;padding-bottom:0;border-bottom:0}
  .pg-shop h1{gap:10px;flex-wrap:wrap}
  .pg-shop .count{font-size:13px}
  .pg-shop .sbox{max-width:none;margin-top:10px}
  .pg-shop .mbar{position:sticky;top:var(--tm-stuck);z-index:2;margin-top:12px;background:#fff;border-top:1px solid var(--tm-border);border-bottom:1px solid var(--tm-border);display:grid;grid-template-columns:1fr 1px 1fr;height:48px;box-shadow:0 4px 16px rgba(20,33,61,.06)}
  .pg-shop .mbar a{background:#fff;font:700 14px var(--tm-font);color:var(--tm-navy);display:flex;align-items:center;justify-content:center;gap:8px}
  .pg-shop .mbar .sep{background:var(--tm-border)}
  .pg-shop .wrap.body{display:block;padding-top:0;padding-bottom:32px}
  .pg-shop .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:6px;padding:12px 0 0;margin-inline:-12px;padding-inline:12px}
  .pg-shop .chip{font-size:12px}
  .pg-shop .plp{grid-template-columns:1fr 1fr;padding-top:12px}
  .pg-shop .why-m{margin-top:20px}
  .pg-shop .more{padding:28px 0 0;margin-top:0}
  .pg-shop .load{width:100%;height:46px}

  .pg-shop .sheet-wrap:target,.pg-shop .sheet-wrap.shown{display:block;position:fixed;inset:0;z-index:60}
  .pg-shop .backdrop{position:absolute;inset:0;background:rgba(20,33,61,.45);opacity:0;transition:opacity 300ms var(--tm-ease-drawer)}
  .pg-shop .sheet{position:absolute;left:0;right:0;top:120px;bottom:0;background:#fff;border-radius:8px 8px 0 0;display:flex;flex-direction:column;box-shadow:var(--tm-shadow-drawer);transform:translateY(100%);transition:transform 300ms var(--tm-ease-drawer)}
  .pg-shop .short .sheet{top:auto;padding-bottom:env(safe-area-inset-bottom,0px)}
  .pg-shop .short .backdrop,.pg-shop .short .sheet{transition-duration:200ms}
  .pg-shop .sheet-wrap:target .backdrop,.pg-shop .sheet-wrap.open .backdrop{opacity:1}
  .pg-shop .sheet-wrap:target .sheet,.pg-shop .sheet-wrap.open .sheet{transform:translateY(0)}
  .pg-shop .sheet-wrap.closing .backdrop{opacity:0;transition-duration:220ms}
  .pg-shop .sheet-wrap.closing .sheet{transform:translateY(100%);transition-duration:220ms}
  .pg-shop .short.closing .backdrop,.pg-shop .short.closing .sheet{transition-duration:150ms}
  .pg-shop .sh-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--tm-border);font-weight:800;font-size:18px}
  .pg-shop .sh-head .shx{width:44px;height:44px;background:transparent;color:var(--tm-navy);display:flex;align-items:center;justify-content:center;padding:0}
  .pg-shop .sh-body{flex:1;overflow:auto;overscroll-behavior:contain;padding:0 16px;-webkit-overflow-scrolling:touch}
  .pg-shop .sh-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--tm-border);display:grid;grid-template-columns:1fr 2fr;gap:8px;background:#fff}
  .pg-shop .sh-foot .btn{height:48px;font-size:15px}
  .pg-shop .sh-foot .btn-outline{font-weight:600;font-size:14px}
  .pg-shop .sort-list{display:flex;flex-direction:column;padding:8px 16px 12px}
  .pg-shop .srow{display:flex;align-items:center;gap:12px;min-height:48px;font-size:15px;font-weight:500;position:relative;color:var(--tm-navy)}
  .pg-shop .radio{width:18px;height:18px;border-radius:50%;border:1px solid var(--tm-navy);display:flex;align-items:center;justify-content:center;flex:none}
  .pg-shop .radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--tm-navy);opacity:0;transform:scale(.6);transition:transform 120ms var(--tm-ease-out),opacity 120ms}
  .pg-shop .srow.on .radio::after{opacity:1;transform:scale(1)}
  .pg-shop .srow.on{font-weight:700}
}

@media (prefers-reduced-motion:reduce){
  .pg-shop .sheet{transform:none;transition:opacity 300ms}
  .pg-shop .sheet-wrap:not(.open):not(:target) .sheet{opacity:0}
}

.pg-shop .tdesc.fits .td-gap{display:none}
.pg-shop .tdesc.fits .td-more{position:static;padding:0;background:none}
