/* UI4 keeps the project's purple identity. Existing category art is reused. */
.ui4-home-intro{padding:36px 0 28px;margin-top:0;background:none;color:var(--ink)}
.ui4-home-intro .eyebrow{font-size:14px;line-height:1.5;letter-spacing:.04em}
.ui4-home-intro h1{font-size:48px;line-height:1.15;letter-spacing:-.045em;margin:8px 0 12px;font-weight:800}
.ui4-home-intro>p{font-size:16px;line-height:1.6;margin:0 0 24px;color:var(--muted)}
.ui4-home-intro .ui4-home-search{display:flex;align-items:center;gap:12px;max-width:800px;min-height:60px;margin:0;padding:6px 6px 6px 18px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);box-shadow:none}
.ui4-home-search input{min-width:0;flex:1;width:100%;height:44px;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px;padding:0}
.ui4-home-search:focus-within{outline:3px solid var(--accent);outline-offset:3px}
.ui4-home-search .btn{min-height:46px;padding:10px 28px;flex:none}
.ui4-home-search .search-icon{flex:none}
body:not(.app-subview):not(.ui4-has-query):not(.compact-search-open) .topbar .searchbar{display:none}
body:not(.app-subview):not(.ui4-has-query) .topbar .header-actions{margin-left:auto}
body.app-subview .ui4-home-intro,body.app-subview .ui4-home-help,body.ui4-has-query .ui4-home-intro,body.ui4-has-query:not(.app-subview) .category-section{display:none}
.category-section{padding-top:0;margin-top:0;margin-bottom:0}
.category-section .section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px;gap:12px}
.category-section .section-heading h2{font-size:20px;line-height:1.4;margin:0}
.category-section .section-heading>.text-btn{display:none}
#categoryList .category-featured-grid{display:grid;grid-template-columns:repeat(var(--category-featured-count,4),minmax(0,1fr));gap:12px;overflow:visible}
#categoryList .category-editorial{display:flex;flex-direction:row;align-items:center;min-width:0;max-width:none;height:92px;min-height:92px;flex:initial;padding:0;border-radius:12px;background:var(--ui-surface);overflow:hidden}
#categoryList .category-editorial>img{width:88px;height:90px!important;max-height:none!important;aspect-ratio:1;object-fit:cover;flex:0 0 88px}
#categoryList .category-editorial-label{padding:12px;min-height:44px;min-width:0;gap:8px;font-size:14px;line-height:1.4;align-items:center}
#categoryList .category-editorial-label strong{font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:normal}
#categoryList .category-editorial-label>span{display:none}
.ui4-other-categories{margin:12px 0 0}
.ui4-other-categories>summary,.ui4-extra-tools>summary{width:fit-content;min-height:44px;padding:10px 0;cursor:pointer;color:var(--accent);font-size:14px;line-height:1.6;font-weight:650}
.ui4-other-categories .category-secondary-list{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}
.ui4-other-categories .category-secondary{width:auto;min-height:44px;padding:10px 14px}
.results-section{padding-top:24px;margin-top:0}
.results-section>.result-heading{margin:0 0 16px;align-items:center;gap:16px}
.result-heading h2{font-size:28px;line-height:1.3;margin:0}
.results-section .search-tools{margin:0 0 20px;gap:10px}
.results-section .catalog-location{flex:0 1 auto;max-width:320px}
.ui4-save-search{display:inline-flex;align-items:center;gap:8px;margin-left:auto;min-height:44px;padding:8px 14px;font-size:14px}
.ui4-save-search .ui-icon{width:18px;height:18px}
.ui4-home-help{padding:32px 0 24px}
.ui4-request-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--ui-soft)}
.ui4-request-entry h2{font-size:20px;line-height:1.4;margin:0 0 6px}
.ui4-request-entry p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.ui4-request-entry .btn{flex:none}
.ui4-extra-tools{margin-top:16px}
.ui4-tools-grid{display:flex;flex-wrap:wrap;gap:12px 32px;padding:8px 0}
.ui4-tools-grid>.text-btn{min-height:44px;font-size:14px;line-height:1.5;text-align:left;white-space:normal}
.ui4-home-help summary:focus-visible,.ui4-other-categories summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:4px}
@media(max-width:1100px) and (min-width:761px){#categoryList .category-editorial>img{width:64px;flex-basis:64px}#categoryList .category-editorial-label{padding:8px}}
@media(max-width:760px){
 .ui4-home-intro{padding:24px 0 20px}
 .ui4-home-intro .eyebrow{font-size:14px;letter-spacing:0}
 .ui4-home-intro h1{font-size:32px;line-height:1.2;margin:8px 0 10px}
 .ui4-home-intro>p{font-size:16px;line-height:1.5;margin-bottom:16px;max-width:340px}
 .ui4-home-intro .ui4-home-search{max-width:none;min-height:56px;padding:5px 5px 5px 12px;gap:8px;border-radius:10px}
 .ui4-home-search .btn{min-height:44px;padding:8px 16px;font-size:14px}
 .category-section{padding:0;margin:0 auto 12px;position:relative}
 .category-section .section-heading{display:flex;flex-direction:row;align-items:center;margin-bottom:12px}
 .category-section .section-heading h2{font-size:18px}
 #categoryList{padding:0}
 #categoryList .category-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}
 #categoryList .category-editorial{min-width:0;max-width:none;min-height:72px;height:72px;flex:initial;padding:0;border-radius:8px}
 #categoryList .category-editorial>img{width:58px;height:70px!important;max-height:none!important;flex-basis:58px;object-fit:cover}
 #categoryList .category-editorial-label{padding:8px;min-height:44px}
 #categoryList .category-editorial-label strong{font-size:14px;line-height:1.3}
 .ui4-other-categories{margin-top:4px}
 .ui4-other-categories .category-secondary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ui4-other-categories .category-secondary{width:100%;font-size:14px;padding:10px;text-align:left;justify-content:flex-start;overflow-wrap:anywhere}
 .results-section{padding-top:12px!important;margin:0  auto 16px}
 .results-section>.result-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:12px}
 .result-heading h2,#resultsTitle{font-size:22px;line-height:1.3}
 .result-heading .eyebrow{font-size:14px;line-height:1.5}
 .result-controls{display:flex;align-items:center;gap:12px;justify-content:space-between}
 .result-controls #sortSelect{min-width:0;max-width:100%;flex:1;width:auto;min-height:44px;font-size:14px}
 .result-count{font-size:14px;flex:none}
 .results-section .search-tools{margin-bottom:16px;gap:8px}
 .results-section .catalog-location{flex:1;min-width:0;max-width:none}
 .search-tools .ui4-save-search{margin-left:0;width:44px;min-width:44px;height:44px;padding:10px;justify-content:center}
 .ui4-save-search span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .ui4-home-help{padding:8px 0 20px}
 .ui4-request-entry{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:20px}
 .ui4-request-entry h2{font-size:20px}
 .ui4-request-entry .btn{width:100%}
 .ui4-tools-grid{display:grid;gap:8px}
 body.ui4-has-query:not(.app-subview) .results-section{padding-top:20px!important}
}
@media(max-width:360px){#categoryList .category-editorial>img{width:44px;flex-basis:44px}#categoryList .category-editorial-label{padding:6px}}

@media(max-width:760px){
 .ui4-home-intro{padding-top:20px}
 .ui4-home-intro>.eyebrow{display:none}
 .ui4-home-intro h1{font-size:30px;margin-top:0}
 .ui4-home-intro>p{font-size:16px}
 .category-section .section-heading{min-height:44px;margin-bottom:8px}
 #categoryList .category-editorial{height:56px;min-height:56px}
 #categoryList .category-editorial>img{height:54px!important;width:48px;flex-basis:48px}
 .ui4-other-categories{margin-top:0}
 .ui4-other-categories>summary{position:absolute;right:0;top:0;min-height:44px;padding:10px 0}
 .ui4-other-categories[open] .category-secondary-list{margin-top:12px}
}
/* Keep the first row of products in reach rather than filling a screen with a hero. */
.ui4-home-intro{padding:24px 0 20px}
.ui4-home-intro h1{font-size:42px;line-height:1.15;margin:0 0 10px}
.ui4-home-intro>p{margin-bottom:16px}
.ui4-home-intro .ui4-home-search{max-width:none;min-height:56px}
.category-section{position:relative}
.category-section .section-heading{min-height:44px;margin-bottom:8px}
#categoryList .category-editorial{height:80px;min-height:80px}
#categoryList .category-editorial>img{height:78px!important}
.ui4-other-categories{margin-top:0}
.ui4-other-categories>summary{position:absolute;right:0;top:0;min-height:44px;padding:10px 0}
.ui4-other-categories[open] .category-secondary-list{margin-top:12px}
@media(min-width:761px){
 .results-section .active-filter-chips{flex:1 1 auto;flex-basis:auto;order:3}
 .results-section .catalog-location{order:1}
 .results-section .filter-toggle{order:2}
 .results-section .ui4-save-search{order:4}
}
@media(max-width:760px){
 .ui4-home-intro{padding:20px 0}
 .ui4-home-intro h1{font-size:30px;line-height:1.2}
 #categoryList .category-editorial{height:56px;min-height:56px}
 #categoryList .category-editorial>img{height:54px!important}
}
