/* Header search, category bar + mega menu, mobile drawer, category landing pages (14 Nov 2026). */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.announcement{display:flex;align-items:center;gap:18px;padding-left:48px;padding-right:48px}
.announcement-text{flex:1;min-width:0;margin:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.announcement .announcement-links{flex:none;display:flex;align-items:center;gap:16px}
.announcement .announcement-links a{position:static;font-size:9.5px;color:#514475;text-decoration:none}
.announcement .announcement-links a:hover{text-decoration:underline}

/* row 1: search */
.header-search{flex:1;max-width:520px;display:flex;align-items:center;gap:8px;background:#f5f3fa;border:1px solid #e4e0ef;border-radius:999px;padding:4px 4px 4px 14px;transition:border-color .2s,box-shadow .2s}
.header-search:focus-within{border-color:var(--purple);box-shadow:0 0 0 3px #6554d922;background:#fff}
.header-search svg{width:17px;height:17px;flex:none;fill:none;stroke:#6f6a80;stroke-width:2}
.header-search input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:13px;padding:7px 0;color:var(--ink);outline:none}
.header-search button,.mega-search button{border:0;border-radius:999px;background:var(--purple);color:#fff;font:inherit;font-size:12px;font-weight:700;padding:8px 16px;cursor:pointer}
.header-search button:hover,.mega-search button:hover{background:var(--purple-dark)}

/* row 2: category bar */
.mega-nav{border-top:1px solid #efedf3;background:#fff}
.mega-inner{position:relative}
.mega-search,.mega-extra{display:none}
.mega-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:stretch;justify-content:space-between;gap:2px}
.mega-list.mega-fit{flex-wrap:nowrap}
.mega-item.mega-overflowed{display:none}
.mega-more{position:relative!important}
.mega-more-button{border:0;background:none;font:inherit;font-size:12.5px;font-weight:650;cursor:pointer;gap:4px}
.mega-more-button svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8}
.mega-panel-more{left:auto!important;right:0!important;width:260px;grid-template-columns:1fr;padding:10px!important;border-radius:0 0 14px 14px}
.mega-more-list{list-style:none;margin:0;padding:0}
.mega-more-list a{display:block;padding:10px 12px;border-radius:9px;color:var(--ink);text-decoration:none;font-size:13.5px;font-weight:600}
.mega-more-list a:hover{background:var(--lavender);color:var(--purple)}
.mega-item{position:static}
.mega-top{display:flex;align-items:center;height:46px}
.mega-link{display:flex;align-items:center;height:100%;padding:0 4px 0 8px;font-size:12.5px;font-weight:650;color:var(--ink);text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}
.mega-plain .mega-link{padding-right:8px}
.mega-toggle{display:flex;align-items:center;justify-content:center;width:20px;height:28px;border:0;background:none;padding:0;cursor:pointer;color:#8a8598}
.mega-toggle svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .2s}
.mega-item:hover .mega-link,.mega-item:focus-within .mega-link,.mega-item.open .mega-link{color:var(--purple);border-bottom-color:var(--purple)}
.mega-item:hover .mega-toggle svg,.mega-item.open .mega-toggle svg{transform:rotate(180deg)}
.mega-panel{display:none;position:absolute;left:0;right:0;top:100%;z-index:40;background:#fff;border:1px solid #ebe8f2;border-top:0;border-radius:0 0 18px 18px;box-shadow:0 24px 48px -16px #1d1b3333;padding:24px 28px;grid-template-columns:1fr 250px;gap:28px}
.mega-item:hover>.mega-panel,.mega-item:focus-within>.mega-panel,.mega-item.open>.mega-panel{display:grid}
.mega-item.closed>.mega-panel{display:none!important}
.mega-heading{margin:0 0 10px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7a7390}
.mega-products{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 24px}
.mega-products a,.mega-tools a{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 10px;border-radius:9px;color:var(--ink);text-decoration:none;font-size:13.5px;font-weight:600}
.mega-products a:hover,.mega-products a:focus-visible,.mega-tools a:hover{background:var(--lavender);color:var(--purple)}
.mega-products small{font-size:11px;font-weight:600;color:#1f7a4d;white-space:nowrap}
.mega-tools{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.mega-tools a{border:1px solid #ebe8f2;font-size:12px;padding:6px 12px;border-radius:999px}
.mega-all{display:inline-block;font-size:13px;font-weight:700;color:var(--purple);text-decoration:none;padding:4px 10px}
.mega-all:hover{text-decoration:underline}
.mega-feature{display:flex;flex-direction:column;justify-content:flex-end;gap:4px;border-radius:16px;padding:18px;background:linear-gradient(160deg,#f4f1ff,#fdf1e7);color:var(--ink);text-decoration:none;min-height:230px}
.mega-feature img{width:110px;height:110px;border-radius:50%;object-fit:cover;margin-bottom:auto;box-shadow:0 0 0 5px #fff}
.mega-feature strong{font-size:16px}
.mega-feature span{font-size:11.5px;color:#625d72}
.mega-feature em{font-style:normal;font-weight:700;font-size:13px;color:var(--purple);margin-top:6px}
.mega-panel-right{grid-template-columns:1fr}
.mega-software{grid-template-columns:repeat(3,minmax(0,1fr))}

/* drawer: under 1100px the ☰ button (store.js toggles .open on #navigation) shows the categories as an accordion */
@media(max-width:1100px){
  .header-search{display:none}
  .menu-toggle{display:block}
  .mega-nav{display:none;position:absolute;left:0;right:0;top:100%;max-height:calc(100vh - 90px);overflow-y:auto;box-shadow:0 18px 30px #1d1b3322;border-bottom:1px solid var(--line)}
  .mega-nav.open{display:block}
  .mega-inner{padding-top:14px;padding-bottom:18px}
  .mega-search{display:flex;gap:8px;margin-bottom:10px}
  .mega-search input{flex:1;min-width:0;font:inherit;font-size:15px;padding:11px 14px;border:1px solid #e4e0ef;border-radius:12px;background:#f7f5fb}
  .mega-list{flex-direction:column;flex-wrap:nowrap;gap:0}
  .mega-more{display:none!important}
  .mega-item.mega-overflowed{display:block}
  .mega-item{border-bottom:1px solid #f0eef4}
  .mega-top{height:auto}
  .mega-link{flex:1;font-size:15px;padding:13px 4px;border:0!important}
  .mega-toggle{width:46px;height:46px;color:var(--ink)}
  .mega-toggle svg{width:14px;height:14px}
  .mega-item:hover .mega-toggle svg{transform:none}
  .mega-item.open .mega-toggle svg{transform:rotate(180deg)}
  .mega-item:hover>.mega-panel,.mega-item:focus-within>.mega-panel{display:none}
  .mega-item.open>.mega-panel{display:block;position:static;border:0;box-shadow:none;padding:0 0 12px;border-radius:0}
  .mega-feature,.mega-panel .mega-heading:first-child{display:none}
  .mega-products{grid-template-columns:1fr;margin-bottom:6px}
  .mega-products a{font-size:14px;padding:10px 8px}
  .mega-software{grid-template-columns:1fr}
  .mega-extra{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
  .mega-extra a,.mega-extra .text-button{font:inherit;font-size:13px;font-weight:600;padding:9px 14px;border:1px solid #e6e2ee;border-radius:999px;color:var(--ink);background:#fff;text-decoration:none;cursor:pointer}
  .mega-extra form{margin:0}
  .announcement .announcement-links{display:none}
  .announcement{padding-left:16px;padding-right:16px}
}
@media(max-width:800px){.mega-nav{max-height:calc(100vh - 76px)}}

/* category landing page */
.cat-page{padding-top:22px;padding-bottom:60px}
.cat-crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:#7a7390;margin-bottom:18px}
.cat-crumbs a{color:#5b5470}
.cat-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;background:linear-gradient(120deg,#f4f1ff,#fdf1e7);border-radius:24px;padding:34px 38px;margin-bottom:34px}
.cat-hero h1{font-size:clamp(28px,3.4vw,44px);line-height:1.12;letter-spacing:-1.2px;margin:8px 0 12px}
.cat-hero p{max-width:720px;margin:0;font-size:15px;line-height:1.7;color:#4d485c}
.cat-hero img{width:170px;height:170px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 8px #ffffffaa}
.cat-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px!important}
.cat-links a{font-weight:700;font-size:13px;color:var(--purple)}
.cat-subhead{font-size:20px;margin:0 0 14px}
.cat-grid{list-style:none;margin:0 0 44px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}
.cat-grid a{display:flex;flex-direction:column;gap:4px;height:100%;border:1px solid #ebe6f0;border-radius:18px;overflow:hidden;background:#fff;color:var(--ink);text-decoration:none;padding-bottom:16px;transition:box-shadow .2s,transform .2s}
.cat-grid a:hover{box-shadow:0 14px 30px -12px #1d1b3333;transform:translateY(-2px)}
.cat-thumb{display:block;aspect-ratio:1;background:#f6f3f9;margin-bottom:10px}
.cat-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.cat-grid strong,.cat-grid .cat-price,.cat-grid small,.cat-grid .cat-cta{padding:0 16px}
.cat-grid strong{font-size:15px;line-height:1.35}
.cat-price{font-size:14px;font-weight:700;color:#1f7a4d}
.cat-grid small{font-size:11.5px;color:#7a7390}
.cat-cta{margin-top:auto;padding-top:8px!important;font-size:12.5px;font-weight:700;color:var(--purple)}
.cat-how{background:#faf9fc;border:1px solid #efecf4;border-radius:20px;padding:26px 28px;margin-bottom:40px}
.cat-how h2,.cat-faq h2,.cat-others h2{font-size:20px;margin:0 0 14px}
.cat-how ol{list-style:none;counter-reset:step;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cat-how li{counter-increment:step;font-size:13px;line-height:1.55;color:#55506a}
.cat-how li::before{content:counter(step);display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--purple);color:#fff;font-weight:700;font-size:12px;margin-bottom:8px}
.cat-how li strong{display:block;color:var(--ink);font-size:14px;margin-bottom:2px}
.cat-how p{margin:0;font-size:13px}
.cat-faq{margin-bottom:40px;max-width:900px}
.cat-faq details{border:1px solid #ece6f2;border-radius:12px;padding:14px 18px;margin:10px 0;background:#fff}
.cat-faq p{margin:10px 0 0;font-size:14px;line-height:1.7;color:#4d485c}
.cat-others ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.cat-others a{display:flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border:1px solid #ebe6f0;border-radius:999px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:650}
.cat-others a:hover{border-color:var(--purple);color:var(--purple)}
.cat-others img{width:36px;height:36px;border-radius:50%;object-fit:cover}
@media(max-width:800px){.cat-how ol{grid-template-columns:1fr 1fr}.cat-hero{padding:24px}.cat-hero img{width:110px;height:110px}}
@media(max-width:560px){.cat-hero{flex-direction:column-reverse;align-items:flex-start}.cat-how ol{grid-template-columns:1fr}.cat-grid{grid-template-columns:1fr 1fr;gap:10px}.cat-grid strong{font-size:13.5px}.cat-grid strong,.cat-grid .cat-price,.cat-grid small,.cat-grid .cat-cta{padding:0 10px}}
html:not([lang="en"]) .mega-link{font-size:13px}

/* Live search suggestions (site-search.js) */
.header-search{position:relative}
.ss-panel{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:40;background:#fff;border:1px solid #e4e0ef;border-radius:16px;box-shadow:0 18px 40px #1d1b3326;padding:6px;max-height:min(70vh,520px);overflow-y:auto}
.ss-panel[hidden]{display:none}
.ss-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;color:var(--ink);text-decoration:none}
.ss-item img,.ss-noimg{width:44px;height:44px;flex:none;border-radius:10px;object-fit:cover;background:#f4f2f9}
.ss-item.active,.ss-item:hover{background:#f3f0fd}
.ss-text{display:flex;flex-direction:column;min-width:0}
.ss-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ss-name mark{background:none;color:var(--purple);font-weight:800}
.ss-meta{font-size:12px;color:#6f6a80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ss-head{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#8a85a0;margin:6px 10px 4px}
.ss-fix{font-size:13px;color:#4d4560;margin:6px 10px 6px}
.ss-fix strong{color:var(--purple)}
.ss-none{font-size:13px;line-height:1.6;color:#4d4560;margin:10px 12px}
.ss-all{display:block;margin-top:4px;padding:10px 12px;border-top:1px solid #f0eef4;font-size:13px;font-weight:700;color:var(--purple);text-decoration:none;border-radius:0 0 12px 12px}
.ss-all.active,.ss-all:hover{background:#f3f0fd}

/* Phones and tablets: the search box is a full-width row under the logo (no longer hidden in the ☰ drawer) */
@media(max-width:1100px){
  .header .nav{flex-wrap:wrap;height:auto;row-gap:0;padding:10px 0 12px}
  .header .nav>.brand,.header .nav>.nav-actions{min-height:52px}
  .header .header-search{display:flex;order:10;flex:1 1 100%;max-width:none;margin-top:4px;padding:3px 3px 3px 14px}
  .header .header-search input{font-size:16px;padding:9px 0}
  .header .header-search button{padding:9px 14px}
  .mega-search{display:none!important}
  .ss-panel{max-height:65vh}
}

/* Brand logo image (owner's logo, public/assets/logo.webp) */
.brand.brand-has-logo{display:inline-flex;align-items:center;flex:none}
.brand-logo{display:block;height:58px;width:auto}
.brand-logo-footer{height:62px}
@media(max-width:1100px){.brand-logo{height:46px}}
@media(max-width:560px){.brand-logo{height:42px}}
.header-search input,.header-search input:focus{border:0!important;box-shadow:none!important;background:transparent!important;outline:none}
/* product picker on order forms (24 Nov 2026): reuses the header search panel */
.product-picker{position:relative;margin-bottom:14px}
.product-picker input[type=search]{width:100%}
.product-picker .ss-panel{top:calc(100% - 22px)}
button.ss-item{width:100%;border:0;background:none;text-align:left;font:inherit;cursor:pointer}
.ss-item.active{background:#f3f0fd}
/* admin "Create order for a customer": product lines + quoted amount (26 Nov 2026) */
.order-lines,.order-quote{border:1px solid #e4e0ef;border-radius:14px;padding:12px 16px 16px;margin:6px 0}
.order-lines legend,.order-quote legend{font-weight:700;padding:0 6px}
.order-line+.order-line{border-top:1px dashed #e4e0ef;margin-top:12px;padding-top:12px}
