/* Hover shelf and left drawer share one product taxonomy. */
.catalog-site-header{z-index:50;gap:19px}
.catalog-site-header .menu-button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:44px;padding:4px;color:var(--ink);order:0}
.catalog-site-header .menu-button .drawn-outline{display:none}
.catalog-site-header .menu-button .control-doodle{width:31px;height:31px}
.catalog-site-header .explore-trigger{box-shadow:none;border-radius:13px 8px 14px 7px}
.catalog-site-header .explore-trigger[aria-expanded=true]{background:#f5b837;transform:none}
.explore-trigger[aria-expanded=true]>span{display:inline-block;transform:rotate(45deg)}
.shelf-heading{display:flex;flex-direction:column;justify-content:center;padding:24px 3% 22px;background:#f6cb50;border-bottom:2px solid var(--ink)}
.shelf-heading .eyebrow{font-size:12px;letter-spacing:.15em;margin-bottom:8px}
.shelf-heading h1{font-family:var(--hand-ui-font);font-size:46px;line-height:1.2;font-weight:var(--hand-ui-weight);text-transform:none}
.explore-shade{position:fixed;inset:78px 0 0;background:#1713169c;z-index:48}
#explore-dialog{z-index:49;box-shadow:none;animation:shelf-enter .16s ease-out}
#explore-dialog .explore-board{grid-template-columns:minmax(220px,24%) minmax(0,1fr);gap:4%}
#explore-dialog .explore-tabs [role=tab]{justify-content:center;text-align:center;min-height:108px;font-size:34px;line-height:1.25;box-shadow:none;border-color:#d3a94b;background:transparent}
#explore-dialog .explore-tabs [role=tab][aria-selected=true]{border-color:var(--ink);background:#f5b837}
.explore-tabs .explore-tab-index,.explore-tabs [role=tab]>span:last-child{display:none}
#explore-dialog .explore-tabs [role=tab]>span:nth-child(2){font-weight:700;color:var(--paper);-webkit-text-stroke:1px var(--ink);paint-order:stroke fill;text-shadow:1px 2px 0 var(--ink)}
html:lang(zh-CN) #explore-dialog .explore-tabs [role=tab],html:lang(zh-TW) #explore-dialog .explore-tabs [role=tab]{font-family:'Highway WenKai','Microsoft YaHei',sans-serif}
#explore-dialog .explore-window{padding:8px;border-radius:27px;background:#ed6635}
#explore-dialog .explore-window [role=tabpanel]{min-height:358px;max-height:min(480px,calc(100dvh - var(--explore-top) - 100px));border-radius:17px}
#explore-dialog .explore-grid{min-height:358px}
.explore-art{background-image:url('assets/category-badges-v2.webp');mix-blend-mode:normal;clip-path:none;width:112px;height:112px;transition:transform .18s ease}
.explore-tile:hover .explore-art{transform:rotate(-5deg) scale(1.06)}
.explore-tile{padding:13px 10px;gap:6px}
.explore-tile b{font-family:'Highway Hand','Highway WenKai','Microsoft YaHei',sans-serif;font-size:20px;line-height:1.35}
.explore-tile small{font-size:12px}
.explore-dialog-top{margin-bottom:13px;font-size:19px}.explore-dialog-top button{border:0;font-size:30px}
.drawer-open{overflow:hidden;scrollbar-gutter:stable}
#shelf-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(470px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-right:2px solid var(--ink);border-radius:0;background:var(--paper);overflow:hidden}
#shelf-drawer[open]{display:flex;flex-direction:column;animation:drawer-enter .22s ease-out}
#shelf-drawer::backdrop{background:#1713169c;backdrop-filter:none}
.drawer-header{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:10px;min-height:78px;padding:10px 14px;border-bottom:2px solid var(--ink);flex-shrink:0;background:var(--paper)}
.drawer-header .wordmark{width:156px;justify-self:center;grid-column:2;grid-row:1}
.drawer-header .bag-toggle{font-size:0;gap:4px;color:var(--ink);padding:0;min-width:44px;grid-column:3;grid-row:1}
.drawer-header .bag-count{font-size:12px;background:var(--yellow);color:var(--ink);width:21px;height:21px}
.drawer-close{width:44px;height:44px;font-family:'Highway Hand',sans-serif;font-size:46px;line-height:1;color:var(--ink);padding:0;grid-column:1;grid-row:1}
.drawer-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:var(--yellow);scrollbar-width:thin}
.drawer-body .explore-board{display:block;padding:12px 12px 14px}
.drawer-body .explore-tabs{display:flex;gap:0;width:max-content;max-width:100%;margin:0 auto 12px;padding:4px;border:2px solid var(--ink);border-radius:30px;background:var(--paper)}
.drawer-body .explore-tabs [role=tab]{padding:8px 14px;min-height:40px;flex:1;justify-content:center;white-space:nowrap;font-family:'Highway Hand','Highway WenKai','Microsoft YaHei',sans-serif;font-size:18px;border:1.5px solid transparent;border-radius:24px;background:transparent;box-shadow:none}
.drawer-body .explore-tabs [role=tab][aria-selected=true]{background:var(--yellow);border-color:var(--ink)}
.drawer-body .explore-window{padding:7px;background:#ed6635;border-radius:23px}
.drawer-body .explore-window [role=tabpanel]{min-height:210px;height:clamp(250px,47dvh,470px);max-height:none;overflow:auto;overscroll-behavior:contain;border-radius:13px;scrollbar-width:auto;scrollbar-color:#8c8781 var(--paper)}
.drawer-panel-all{display:block;padding:10px;text-align:center;border-bottom:1.5px solid var(--ink);font-family:'Highway Hand','Highway WenKai','Microsoft YaHei',sans-serif;font-size:22px;font-weight:700}
.drawer-body .explore-grid{grid-template-columns:repeat(3,minmax(0,1fr));min-height:0}
.drawer-body .explore-tile{border-right:1px solid var(--ink);border-bottom:1px solid var(--ink);padding:11px 5px;gap:3px;min-height:135px}
.drawer-body .explore-tile:nth-child(3n){border-right:0}
.drawer-body .explore-tile b{font-size:16px;line-height:1.3}
.drawer-body .explore-art{width:90px;height:90px;max-width:100%}
.drawer-body .explore-tile small{font-size:11px}
.drawer-body .material-tile{min-height:180px}.drawer-body .material-photo{width:90px;height:90px}
.drawer-body .explore-box-grid{grid-template-columns:1fr}
.drawer-body .box-tile{align-items:flex-start;padding:20px;min-height:160px;border-right:0}
.drawer-body .box-tile b{font-size:23px}
.drawer-company{background:var(--paper);border-top:2px solid var(--ink);border-bottom:2px solid var(--ink)}
.drawer-company summary{display:flex;justify-content:space-between;align-items:center;list-style:none;cursor:pointer;padding:10px 14px;font-family:'Highway Hand','Highway WenKai','Microsoft YaHei',sans-serif;font-weight:700;font-size:23px}
.drawer-company summary::-webkit-details-marker{display:none}.drawer-company summary>span{display:grid;place-items:center;border:1.5px solid var(--ink);border-radius:50%;width:32px;height:32px;background:var(--yellow);font:24px sans-serif}
.drawer-company:not([open]) summary>span{transform:rotate(-90deg)}
.drawer-company nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 12px 14px;border-top:1.5px solid var(--ink)}
.drawer-company a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;text-align:center;background:var(--yellow);border:1.5px solid var(--ink);border-radius:13px 9px 12px 10px;font-family:'Highway Hand','Highway WenKai','Microsoft YaHei',sans-serif;font-size:19px;line-height:1.3}
.drawer-company .drawer-all{grid-column:1/-1}
.drawer-language{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px;background:var(--paper);font-size:14px}
.drawer-language select{background:var(--paper);border:1.5px solid var(--ink);border-radius:8px;padding:8px;min-height:44px;color:var(--ink);max-width:65%}
@keyframes drawer-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@keyframes shelf-enter{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.catalog-site-header{gap:14px}#explore-dialog .explore-tabs [role=tab]{font-size:28px}#explore-dialog .explore-board{grid-template-columns:190px minmax(0,1fr);gap:22px}.explore-art{width:98px;height:98px}}
@media(max-width:720px){
 .catalog-site-header{grid-template-columns:42px minmax(0,1fr) auto;gap:8px 11px;padding:8px 4%;min-height:0}
 .catalog-site-header .menu-button{grid-column:1;grid-row:1;justify-self:start;width:40px;height:42px;min-height:42px}
 .catalog-site-header .wordmark{grid-column:2;grid-row:1;justify-self:center;width:132px}
 .catalog-site-header .header-tools{grid-column:3;grid-row:1;margin:0}
 .catalog-site-header .explore-trigger{grid-column:1/3;grid-row:2;min-height:39px;font-size:18px;padding:4px 12px}
 .catalog-site-header .language-picker{grid-column:3;grid-row:2;justify-self:end;margin:0}
 .catalog-site-header .language-picker select{max-width:108px;width:108px;font-size:14px}
 .shelf-heading{padding:20px 4%}.shelf-heading h1{font-size:36px}.shelf-heading .eyebrow{font-size:11px;margin-bottom:6px}
 #explore-dialog{padding:10px 3% 16px;max-height:calc(100dvh - var(--explore-top));overflow:auto}
 #explore-dialog .explore-board{display:block}#explore-dialog .explore-tabs{display:flex;gap:5px;margin-bottom:12px}
 #explore-dialog .explore-tabs [role=tab]{min-height:48px;padding:6px 3px;font-size:22px}
 #explore-dialog .explore-window [role=tabpanel]{height:auto;min-height:210px;max-height:calc(100dvh - var(--explore-top) - 145px)}
 #explore-dialog .explore-grid{grid-template-columns:repeat(3,minmax(0,1fr));min-height:0}
 #explore-dialog .explore-tile{border-right:1px solid var(--ink);border-bottom:1px solid var(--ink);padding:10px 5px;min-height:138px}
 #explore-dialog .explore-tile:nth-child(3n){border-right:0}#explore-dialog .explore-tile b{font-size:17px}
 #explore-dialog .explore-art{width:85px;height:85px}#explore-dialog .explore-box-grid{grid-template-columns:1fr}
 #shelf-drawer{width:100%;border-right:0}.drawer-header{min-height:70px}.drawer-body .explore-tabs [role=tab]{font-size:17px;padding:8px 12px}
}
@media(max-width:350px){.catalog-site-header .wordmark{width:112px}.catalog-site-header .language-picker select{max-width:94px;width:94px}.drawer-body .explore-tabs [role=tab]{font-size:16px;padding:8px 9px}.drawer-body .explore-art{width:76px;height:76px}.drawer-body .explore-tile b{font-size:14px}.drawer-header .wordmark{width:138px}}
@media(prefers-reduced-motion:reduce){#shelf-drawer[open],#explore-dialog{animation:none}.explore-art{transition:none}}
.explore-art-pair{display:block;position:relative;width:112px;height:112px;flex-shrink:0}
.explore-art-pair .explore-art{position:absolute;width:78px;height:78px;left:0;top:3px}
.explore-art-pair .explore-art:last-child{left:auto;top:auto;right:0;bottom:2px}
.drawer-body .explore-art-pair{width:90px;height:90px}.drawer-body .explore-art-pair .explore-art{width:64px;height:64px}
.category-shortcuts{padding:0 3% 27px;max-width:1700px;margin:auto}
.shortcut-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}
.shortcut-heading h2{font:22px 'Highway WenKai','Highway Hand',sans-serif}.shortcut-heading>a{font-size:14px;text-decoration:underline;text-underline-offset:4px}
.shortcut-grid{display:grid;grid-template-columns:repeat(var(--shortcut-count,2),minmax(0,1fr));gap:18px;max-width:1100px}
.category-shortcut{display:flex;align-items:center;gap:17px;padding:12px 20px;border:2px solid var(--ink);border-radius:14px;background:var(--paper);transition:background .15s}
.category-shortcut:hover,.category-shortcut[aria-current=page]{background:#fbe4a5}
.category-shortcut .explore-art{width:86px;height:86px}.category-shortcut b{font:24px 'Highway WenKai','Highway Hand',sans-serif;display:block}
.category-shortcut small{display:block;font-size:13px;margin-top:6px;color:var(--muted)}.category-shortcut>span:last-child{margin-left:auto;font-size:23px}
.category-button.sub{padding-left:calc(11px + var(--category-depth,1)*13px)}
@media(max-width:720px){.category-shortcuts{padding:0 4% 22px}.shortcut-grid{gap:10px}.category-shortcut{padding:12px 7px;gap:6px;flex-wrap:wrap;justify-content:center;text-align:center}.category-shortcut .explore-art{width:76px;height:76px}.category-shortcut b{font-size:18px}.category-shortcut>span:last-child{display:none}.category-shortcut small{font-size:12px}.shortcut-heading h2{font-size:20px}#explore-dialog .explore-art-pair{width:85px;height:85px}#explore-dialog .explore-art-pair .explore-art{width:60px;height:60px}}

/* Eight primary categories, with original leaf illustrations retained. */
.explore-art.secondary-art{background-size:300% 300%;mix-blend-mode:multiply;border-radius:50%}
.secondary-art-storage-cleaning{background-image:url('assets/subcategory-storage-cleaning-v1.webp')}
.secondary-art-apparel-ash{background-image:url('assets/subcategory-apparel-ash-v1.webp')}
.explore-art.secondary-art-grinder-pipe{background-image:url('assets/subcategory-grinder-pipe-v1.webp');background-size:300% 200%}
.explore-art.explore-group-art{background-image:url('assets/category-groups-v3.webp');background-size:300% 200%;mix-blend-mode:multiply;border-radius:50%}
.explore-group-art.group-art-0{background-position:0 0}.explore-group-art.group-art-1{background-position:50% 0}.explore-group-art.group-art-2{background-position:100% 0}.explore-group-art.group-art-3{background-position:0 100%}.explore-group-art.group-art-4{background-position:50% 100%}.explore-group-art.group-art-5{background-position:100% 100%}
@media(min-width:721px){#explore-dialog #menu-explore-type .explore-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#explore-dialog #menu-explore-type .explore-tile{border-right:1px solid var(--ink);border-bottom:1px solid var(--ink)}#explore-dialog #menu-explore-type .explore-tile:nth-child(4n){border-right:0}#explore-dialog #menu-explore-type .explore-tile:nth-child(n+5){border-bottom:0}}
.category-shortcuts{padding-top:0}.browse-facets{border:2px solid var(--ink);border-radius:16px;background:var(--paper);padding:20px 24px;max-width:1100px}.shortcut-grid+.browse-facets{margin-top:22px}
.browse-facet{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:start}.browse-facet+.browse-facet{margin-top:18px;padding-top:18px;border-top:1px solid #30282030}.browse-facet h2{font:22px 'Highway WenKai','Highway Hand',sans-serif;line-height:44px}.facet-options{display:flex;flex-wrap:wrap;gap:8px}.facet-option{min-height:44px;padding:8px 16px;border:1.5px solid var(--ink);border-radius:22px;background:transparent;color:var(--ink);font:17px 'Highway WenKai','Highway Hand',sans-serif;cursor:pointer}.facet-option[aria-pressed=true]{background:var(--yellow);box-shadow:2px 2px 0 var(--ink)}.facet-option:hover{background:#fbe4a5}.facet-option:focus-visible{outline:3px solid #167da8;outline-offset:3px}.facet-note{font-size:13px;line-height:1.6;color:var(--muted);margin:16px 0 0}.shortcut-number{display:grid;place-items:center;flex-shrink:0;width:37px;height:37px;border:1.5px solid var(--ink);border-radius:50%;background:var(--yellow);font:19px 'Highway Hand',sans-serif}.text-shortcut{min-height:92px}.text-shortcut b{font-size:23px}
@media(max-width:720px){.browse-facets{padding:16px 12px}.browse-facet{display:block}.browse-facet h2{font-size:20px;line-height:1.4;margin-bottom:12px}.facet-option{font-size:16px;padding:7px 12px}.facet-options{gap:8px}.shortcut-grid:has(.text-shortcut){grid-template-columns:repeat(2,minmax(0,1fr))}.text-shortcut{display:flex;flex-direction:row;justify-content:flex-start;text-align:left;flex-wrap:nowrap;gap:9px;padding:12px 9px}.text-shortcut b{font-size:18px}.shortcut-number{width:29px;height:29px;font-size:17px}.text-shortcut small{font-size:11px}}

/* Material categories use the same illustrated cards as product types. Sizes stay textual. */
.browse-facet.illustrated-facet{display:block}.facet-art-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.facet-text-controls{display:flex;gap:8px;flex-wrap:wrap}.facet-text-controls .facet-option{font-size:14px;min-height:38px;padding:5px 13px}.facet-art-grid{display:grid;grid-template-columns:repeat(var(--facet-columns,3),minmax(0,1fr));gap:12px}.facet-option.facet-art-option{display:flex;align-items:center;justify-content:center;gap:13px;min-height:120px;border-radius:14px;padding:13px 16px;text-align:left;font-size:22px}.facet-art-option .explore-art{width:86px;height:86px;flex-shrink:0}.facet-art-option>span:last-child{min-width:0;overflow-wrap:anywhere}.facet-art-option[aria-pressed=true]{border-width:2px;box-shadow:3px 3px 0 var(--ink)}
@media(max-width:1100px){.facet-option.facet-art-option{flex-direction:column;text-align:center;font-size:20px}}
@media(max-width:720px){.shortcut-grid:has(.secondary-art){grid-template-columns:repeat(2,minmax(0,1fr))}.facet-art-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.facet-art-grid[style*="--facet-columns:4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.facet-option.facet-art-option{padding:10px 4px;gap:8px;font-size:17px;min-height:138px}.facet-art-option .explore-art{width:70px;height:70px}.facet-art-heading h2{margin:0}.facet-art-heading{gap:8px}.facet-text-controls{gap:6px}.facet-text-controls .facet-option{font-size:13px;padding:5px 10px}.category-shortcut .secondary-art{width:76px;height:76px}}

/* All products presents every primary category above the product list. */
.primary-shortcut-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}.primary-shortcut-grid .category-shortcut{padding:12px 16px;gap:12px}.primary-shortcut-grid .category-shortcut b{font-size:22px}.primary-shortcut-grid .category-shortcut>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
@media(max-width:1100px){.primary-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.primary-shortcut-grid{gap:10px}.primary-shortcut-grid .category-shortcut{flex-direction:column;flex-wrap:nowrap;padding:13px 8px;gap:8px}.primary-shortcut-grid .category-shortcut b{font-size:19px}.primary-shortcut-grid .category-shortcut .explore-art{width:76px;height:76px}}

.explore-art.secondary-art.sticker-art{background-image:url('assets/subcategory-stickers-v1.webp');background-size:contain;background-position:center;background-repeat:no-repeat}
