/* Reference-aligned surfaces, shared by the storefront and installed shopper app. */
body.nh-store :is(.profile-layout,.nh-settings-dialog) :is(h1,h2,h3,strong),body.nh-store :is(.factories-hero,.ranking-shell,.factory-directory) :is(h1,h2,h3,strong){font-family:Inter,Arial,sans-serif!important}
body.nh-store .profile-sidebar{padding:18px 12px!important}
body.nh-store .profile-sidebar nav :is(button,a),body.nh-store .profile-logout{display:flex;align-items:center;gap:10px;min-height:46px;padding:11px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--nh-ink)!important;font-size:14px!important;font-weight:600;text-decoration:none;line-height:1.4;box-shadow:none}
body.nh-store .profile-sidebar nav :is(button,a):hover{background:var(--nh-soft)}
body.nh-store .profile-sidebar nav button.is-active{background:var(--nh-green)!important;color:#fff!important;border-color:var(--nh-green)}
body.nh-store .profile-sidebar nav :is(button,a)>span{color:inherit;flex-shrink:0}
body.nh-store .profile-sidebar nav svg,body.nh-store .profile-logout svg{width:21px;height:21px;flex-shrink:0}
body.nh-store .profile-logout{color:#b63737!important;margin:16px 0 6px;width:100%;border-top:1px solid var(--nh-line)}
body.nh-store .profile-help-links{border-top:1px solid var(--nh-line);margin-top:16px;padding-top:12px}
body.nh-store .profile-page-heading h1{font-size:34px}
body.nh-store .profile-hero-card h2{font-size:24px}
body.nh-store .profile-page-heading p,body.nh-store .profile-section-intro p{font-size:14px;color:var(--nh-muted)}
body.nh-store .profile-main .profile-section{border:0!important;padding:0!important}
body.nh-store .profile-main :is(.profile-hero-card,.profile-stats>*,.profile-overview-grid>article,.profile-favorites-preview,.profile-form,.profile-product-card){background:var(--nh-card)!important;color:var(--nh-ink)!important}
body.nh-store .profile-main :is(small,p){color:var(--nh-muted)}
body.nh-store .profile-latest-order-row span{font-size:12px}
body.nh-store .profile-product-card strong{font-size:14px}
body.nh-store .profile-product-card small{font-size:12px}
body.nh-store .factories-hero{background:linear-gradient(90deg,#063d32f2 0%,#063d32cc 52%,#063d324d),url('/assets/factory-knitting.png') center/cover;box-shadow:none;border-radius:18px}
body.nh-store .factories-hero h1{color:#fff!important;font-size:clamp(32px,4vw,52px);line-height:1.12;max-width:650px}
body.nh-store .factories-hero-copy>span{color:#dbf6ea;letter-spacing:.12em}
body.nh-store .factories-hero p{color:#f1faf6!important;font-size:16px;max-width:560px}
body.nh-store .factories-hero-note strong{color:#fff;font-size:24px;font-style:normal}
body.nh-store .factories-hero-note small{color:#e5f6ed;font-size:13px}
body.nh-store .factory-pills{display:flex;gap:12px;padding:16px 0 0;overflow:auto}
body.nh-store .factory-pills button{background:var(--nh-card)!important;border-color:var(--nh-line);min-height:72px;min-width:170px;font-size:14px;font-weight:600;max-width:320px;gap:12px;padding:12px 16px}
body.nh-store .factory-pills button.is-active{background:var(--nh-soft)!important;color:var(--nh-accent)!important;border:2px solid var(--nh-green)}
body.nh-store .factory-pills button i{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:var(--nh-card);color:var(--nh-accent);border-radius:10px;box-shadow:none}
body.nh-store .factory-pills button i img{width:34px;height:34px;object-fit:contain;border-radius:6px}
body.nh-store .factory-pills button i svg{width:25px;height:25px}
body.nh-store .factory-pills button>span{min-width:0;white-space:normal;line-height:1.4}
body.nh-store .marketplace-factories :is(h2,h3){font-size:22px!important}
body.nh-store .marketplace-factories a{color:var(--nh-accent)!important;font-size:14px!important;font-weight:600}
body.nh-store .nh-settings-dialog :is(h2,h3,h4){color:var(--nh-ink)!important;font-family:Inter,Arial,sans-serif!important}
body.nh-store .nh-setting-panel>p{color:var(--nh-muted)!important;font-size:14px;line-height:1.6}
body.nh-store .nh-settings-link{font-size:14px;min-height:48px}
body.nh-store #app-menu-open{display:none!important}
body.nh-store .app-profile-hub{margin:18px 0 0;padding:16px;border:1px solid var(--nh-line);border-radius:14px;background:var(--nh-card)}
body.nh-store .app-profile-hub h2{margin:0 0 14px;font:700 18px/1.4 Inter,Arial,sans-serif}
body.nh-store .app-profile-hub nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.nh-store .app-profile-hub nav :is(button,a){display:grid;grid-template-columns:24px 1fr;align-items:center;gap:4px 8px;padding:12px;min-height:64px;text-align:left;border:1px solid var(--nh-line);border-radius:10px;background:var(--nh-soft);color:var(--nh-ink);text-decoration:none}
body.nh-store .app-profile-hub nav :is(button,a)>span{grid-row:1/3;display:grid;place-items:center;color:var(--nh-accent)}
body.nh-store .app-profile-hub nav :is(strong,small){min-width:0;overflow-wrap:anywhere}
body.nh-store .app-profile-hub nav strong{font-size:13px;line-height:1.4}
body.nh-store .app-profile-hub nav small{grid-column:2;font-size:11px;color:var(--nh-muted)}
body.nh-store .app-profile-hub svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
body.nh-store .app-profile-hub .app-menu-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
body.nh-store .app-profile-hub .app-menu-tools button,body.nh-store .app-profile-hub>a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px;border:1px solid var(--nh-line);border-radius:9px;background:var(--nh-card);color:var(--nh-accent);font-size:13px;font-weight:600;text-decoration:none}
body.nh-store .app-profile-hub>a{margin-top:8px}
@media(max-width:760px){body.nh-store .profile-sidebar nav{flex-wrap:wrap;overflow:visible}body.nh-store .profile-sidebar nav :is(button,a){min-height:44px;font-size:12px!important;padding:8px 10px}body.nh-store .profile-sidebar .profile-help-links{display:grid;grid-template-columns:1fr 1fr}body.nh-store .profile-page-heading h1{font-size:28px}body.nh-store .factories-hero-copy{padding:28px 22px}body.nh-store .factories-hero p{font-size:14px}}
@media(prefers-reduced-motion:reduce){body.nh-store *,body.nh-store *::before,body.nh-store *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

body.nh-store .marketplace-factories{padding:20px!important;background:var(--nh-card)!important;border:1px solid var(--nh-line)!important;border-radius:14px!important}
body.nh-store .marketplace-factories>header strong{color:var(--nh-ink);font-size:20px}
body.nh-store .marketplace-factories>header a{color:var(--nh-accent)!important;font-size:14px!important}
body.nh-store .app-home-categories{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;margin:18px 0!important;padding:0!important}
body.nh-store .app-home-categories button{display:flex!important;flex-direction:column;gap:7px;align-items:center;justify-content:start;min-width:0!important;min-height:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;color:var(--nh-ink)!important}
body.nh-store .app-home-categories .category-portrait{display:block!important;width:100%!important;height:auto!important;max-width:88px;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#eae5de;border:2px solid var(--nh-card);box-shadow:0 0 0 1px var(--nh-line);margin:3px 0;flex-shrink:0}
body.nh-store .app-home-categories .category-portrait img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;object-position:50% 50%;border-radius:50%}
body.nh-store .app-home-categories button:focus-visible{outline:2px solid var(--nh-green);outline-offset:6px;border-radius:8px}
body.nh-store .app-home-categories button.is-active .category-portrait{box-shadow:0 0 0 2px var(--nh-card),0 0 0 4px var(--nh-green)}
body.nh-store .app-home-categories strong{font:600 13px/1.4 Inter,Arial,sans-serif!important}
body.nh-store .app-view[data-app-view="home"]>.app-hero{width:100%!important;max-width:100%}
body.nh-store .app-hero-controls{background:#fffffff0!important;border-radius:20px;padding:4px 7px;color:#005b49!important}
body.nh-store .app-hero-controls span{color:#005b49!important}
body.nh-store .app-product-heading h3,body.nh-store .app-detail-heading h1{font-family:Inter,Arial,sans-serif!important}

/* Desktop and mobile web use the same category portraits as the installed shop. */
body.nh-store #factories-marketplace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:20px;align-items:stretch}
@media(min-width:951px){body.nh-store #factories-marketplace{grid-template-columns:1fr}body.nh-store .catalog-category-panel{width:100%}body.nh-store .catalog-photo-categories{grid-template-columns:repeat(4,minmax(150px,1fr));gap:clamp(24px,5vw,84px)}body.nh-store .marketplace-factories{grid-column:1}}
body.nh-store .catalog-category-panel{min-width:0;padding:20px;border:1px solid var(--nh-line);border-radius:14px;background:var(--nh-card)}
body.nh-store .catalog-category-panel header,body.nh-store .marketplace-factories>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
body.nh-store .catalog-category-panel h2{margin:0;font:700 20px/1.4 Inter,Arial,sans-serif;color:var(--nh-ink)}
body.nh-store .catalog-category-panel header button{border:0;background:transparent;color:var(--nh-accent);font:600 13px/1.4 Inter,Arial,sans-serif;padding:6px 0;white-space:nowrap}
body.nh-store .catalog-photo-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.nh-store .catalog-photo-categories button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:0;min-width:0;border:0;background:transparent;color:var(--nh-ink)}
body.nh-store .catalog-category-photo{display:block;width:min(100%,96px);aspect-ratio:1;overflow:hidden;border:3px solid var(--nh-card);border-radius:50%;box-shadow:0 0 0 1px var(--nh-line);background:#eae5de}
body.nh-store .catalog-category-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
body.nh-store .catalog-photo-categories strong{font:600 14px/1.4 Inter,Arial,sans-serif}
body.nh-store .catalog-photo-categories [aria-pressed=true] .catalog-category-photo{box-shadow:0 0 0 2px var(--nh-green)}
body.nh-store .catalog-photo-categories button:focus-visible{outline:2px solid var(--nh-green);outline-offset:5px;border-radius:8px}
body.nh-store #factories-marketplace .factory-pills{padding-top:0;flex-wrap:wrap;overflow:visible}
body.nh-store #factories-marketplace .factory-pills button{min-width:0;max-width:100%;min-height:68px;padding:10px 14px;font-size:14px}
body.nh-store #factories-marketplace .marketplace-factories>header a{white-space:nowrap;font-size:12px!important}
body.nh-store #factories-marketplace .factory-pills{display:flex;align-items:flex-start;gap:clamp(18px,4vw,58px);padding:4px 0 8px;overflow-x:auto;flex-wrap:nowrap}
body.nh-store #factories-marketplace .factory-pills button{display:flex!important;width:104px;min-width:104px!important;max-width:104px!important;min-height:110px!important;flex:0 0 104px;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:4px!important;border:0!important;background:transparent!important;text-align:center}
body.nh-store #factories-marketplace .factory-pills button i{display:grid;width:76px;height:76px;flex:0 0 76px;place-items:center;overflow:hidden;border:2px solid var(--nh-line);border-radius:50%;background:#fff;color:var(--nh-accent)}
body.nh-store #factories-marketplace .factory-pills button i img{width:100%;height:100%;padding:6px;border-radius:50%;object-fit:contain}
body.nh-store #factories-marketplace .factory-pills button>span{display:block;width:100%;font-size:13px;line-height:1.2;text-align:center;white-space:normal}
body.nh-store #factories-marketplace .factory-pills button.is-active{color:var(--nh-accent)!important;border:0!important;background:transparent!important}
body.nh-store #factories-marketplace .factory-pills button.is-active i{border-color:var(--nh-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--nh-accent) 22%,transparent)}
body.nh-store .catalog-filter-panel{border:1px solid var(--nh-line);border-radius:12px;background:var(--nh-card);margin-bottom:10px}
body.nh-store .catalog-filter-panel summary{display:flex;align-items:center;gap:10px;padding:14px 16px;list-style:none;cursor:pointer;color:var(--nh-ink);font:600 14px/1.4 Inter,Arial,sans-serif}
body.nh-store .catalog-filter-panel summary::-webkit-details-marker{display:none}
body.nh-store .catalog-filter-panel summary::after{content:"+";margin-left:auto;font-size:22px;font-weight:400;color:var(--nh-accent)}
body.nh-store .catalog-filter-panel[open] summary::after{content:"−"}
body.nh-store .catalog-filter-panel summary svg{width:21px;height:21px}
body.nh-store .catalog-filter-hint{color:var(--nh-muted);font-size:12px;font-weight:400}
body.nh-store .catalog-filter-content{padding:0 16px 16px;border-top:1px solid var(--nh-line)}
body.nh-store .catalog-filter-label{margin:16px 0 8px;color:var(--nh-ink);font-size:13px;font-weight:600}
body.nh-store .catalog-filter-content .catalog-controls{display:grid;grid-template-columns:1fr 1.3fr;gap:18px}
body.nh-store .catalog-filter-content .filters{display:flex;flex-wrap:wrap;justify-content:flex-start}
body.nh-store .catalog-filter-content .filter-button{flex:0 0 auto;width:auto}
body.nh-store .catalog-filter-reset{margin-top:16px;padding:8px 12px;border:1px solid var(--nh-line);border-radius:8px;background:var(--nh-card);color:var(--nh-accent);font-size:13px}
@media(max-width:950px){body.nh-store #factories-marketplace{grid-template-columns:1fr}body.nh-store .catalog-photo-categories{max-width:600px;margin:auto}body.nh-store .catalog-filter-content .catalog-controls{grid-template-columns:1fr;gap:0}}
@media(max-width:480px){body.nh-store .catalog-category-panel,body.nh-store #factories-marketplace .marketplace-factories{padding:16px!important}body.nh-store .catalog-photo-categories{gap:10px}body.nh-store .catalog-photo-categories strong{font-size:12px}body.nh-store .catalog-filter-hint{display:none}body.nh-store .catalog-category-panel h2,body.nh-store .marketplace-factories>header strong{font-size:18px}body.nh-store .catalog-filter-content .season-switch{flex-wrap:wrap;overflow:visible}}

body.nh-store .nh-product-feed-footer{grid-column:1/-1;display:grid;justify-items:center;gap:10px;width:100%;padding:20px 0 12px;color:var(--nh-muted);text-align:center}
body.nh-store .nh-product-feed-footer p{margin:0;font:400 13px/1.5 Arial,sans-serif}
body.nh-store .nh-product-feed-footer button{min-height:44px;padding:10px 22px;background:var(--nh-mint);color:var(--nh-green);border:1px solid var(--nh-line);border-radius:10px;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
body.nh-store .app-main,body.nh-store .app-view{max-height:none}
