.home-page{--home-accent:#5943be;--home-accent-ink:#fff}
html[data-theme=dark] .home-page{--home-accent:#b5a4fb;--home-accent-ink:#171327}
@media(prefers-color-scheme:dark){html[data-theme=auto] .home-page{--home-accent:#b5a4fb;--home-accent-ink:#171327}}
.home-wrap{width:min(calc(100% - 2rem),1240px);margin-inline:auto}
.home-header{background:var(--white);border-bottom:1px solid var(--border)}
.home-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;padding-block:1rem}
.home-brand{display:flex;align-items:center;gap:.5rem;color:var(--text);font-weight:850;white-space:nowrap;font-size:1.14rem}
.home-brand span,.home-product-icon{display:grid;place-items:center;background:var(--pale);color:var(--strong);border-radius:.8rem;width:42px;height:42px;flex:none}
.home-search{display:flex;min-width:0;padding:.2rem .4rem;background:var(--canvas);border:1px solid var(--border);border-radius:.85rem;max-width:620px}
.home-search input{flex:1;min-width:0;background:transparent;border:0;padding:.5rem;color:var(--text);font:inherit;font-size:16px}
.home-search input::placeholder{color:var(--muted)}
.home-search button{display:grid;place-items:center;width:44px;min-height:44px;border:0;background:transparent;color:var(--strong);cursor:pointer}
.home-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.home-account,.home-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.home-btn{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:.5rem .8rem;border-radius:.7rem;font-weight:700;font-size:.91rem}
.home-primary{background:var(--home-accent);color:var(--home-accent-ink)}
.home-secondary{background:var(--white);border:1px solid var(--border);color:var(--text)}
.home-hero-alt{border:1px solid #b7ace9;color:#f7f4ff}
.home-main-nav,.home-filters{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .8rem}
.home-main-nav a,.home-filters a{display:inline-flex;align-items:center;min-height:44px;padding:.31rem .65rem;color:var(--muted)}
.home-main-nav a:hover,.home-filters a:hover{color:var(--strong)}
.home-hero{margin-block:1.1rem;display:grid;grid-template-columns:1fr 1fr;align-items:center;overflow:hidden;border-radius:1.2rem;background:#151934;color:#fff}
.home-hero>div{padding:clamp(1.1rem,4vw,3.2rem)}
.home-hero h1{font-size:clamp(1.65rem,3.6vw,3.1rem);line-height:1.4;margin:0}
.home-hero p{color:#e5e4f4;margin:.55rem 0 1rem}
.home-hero img{width:100%;height:clamp(190px,24vw,335px);object-fit:cover;mask-image:linear-gradient(to left,transparent,#000 22%)}
.home-hero .home-primary{background:#ded6ff;color:#20163e}
.home-shortcuts{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:.5rem;margin-block:1rem 1.45rem;padding:1rem .6rem;background:var(--white);border:1px solid var(--border);border-radius:1rem}
.home-shortcuts a{display:grid;justify-items:center;align-content:start;gap:.45rem;padding:.4rem .15rem;text-align:center;color:var(--text);font-size:.86rem}
.home-shortcuts a span{display:grid;place-items:center;width:52px;height:52px;border-radius:1rem;background:var(--pale);color:var(--strong)}
.home-shortcuts a:hover span{outline:2px solid var(--strong)}
.home-feature{border-radius:1rem;background:var(--pale);padding:1rem;margin-block-end:1.5rem}
.home-section-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.65rem}
.home-section-head h2{font-size:clamp(1.05rem,3vw,1.4rem);margin:0}
.home-section-head a,.home-section-head>span{color:var(--strong);font-size:.86rem}
.home-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}
.home-product{display:flex;flex-direction:column;min-width:0;background:var(--white);border:1px solid var(--border);border-radius:.85rem;padding:.9rem;overflow-wrap:anywhere}
.home-product h3{line-height:1.55;margin:.65rem 0 .3rem;font-size:1.04rem}
.home-product p{margin:0 0 .65rem;font-size:.86rem;color:var(--muted)}
.home-card-head{display:flex;justify-content:space-between;align-items:center;gap:.25rem}
.home-status{color:var(--muted);font-size:.77rem}
.home-price{margin-top:auto;display:grid;gap:.05rem}
.home-price small{color:var(--muted)}
.home-product .home-card-actions{margin:.55rem 0 0}
.home-product .home-btn{flex:1}
.home-filters{margin-bottom:.7rem}
.home-filters a{border:1px solid var(--border);border-radius:10rem;background:var(--white)}
.home-filters a[aria-current]{color:var(--home-accent-ink);background:var(--home-accent);border-color:transparent}
.home-empty{padding:1rem;border:1px solid var(--border);border-radius:.85rem;background:var(--white)}
.home-catalog{scroll-margin-top:1rem;padding-bottom:2rem}
.home-footer>div{display:flex;flex-wrap:wrap;gap:1.2rem;padding-block:1rem}
@media(max-width:830px){.home-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){
 .home-wrap{width:calc(100% - 1.15rem)}
 .home-top{grid-template-columns:1fr auto;gap:.5rem;padding-block:.55rem}
 .home-search{grid-column:1/-1;grid-row:2;max-width:none}
 .home-account{justify-content:flex-end;gap:.2rem}
 .home-account .home-btn{padding:.35rem .48rem;font-size:.78rem}
 .home-main-nav{gap:.2rem;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap}
 .home-main-nav a{padding-inline:.42rem;font-size:.84rem}
 .home-hero{margin-block:.65rem;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}
 .home-hero>div{padding:.8rem}
 .home-hero img{height:100%;min-height:175px}
 .home-hero h1{font-size:1.38rem}
 .home-hero p{font-size:.83rem}
 .home-hero .home-btn{font-size:.8rem;padding:.4rem .52rem}
 .home-feature{padding:.65rem}
 .home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem}
 .home-feature .home-grid{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(145px,54%);overflow-x:auto;scroll-snap-type:inline proximity;padding-block-end:.4rem}
 .home-feature .home-product{scroll-snap-align:start}
 .home-product{padding:.65rem}
 .home-product .home-btn{padding-inline:.45rem;font-size:.78rem}
}

/* Keep navigation and product actions reachable on narrow touch screens. */
.home-page a:focus-visible,.home-page button:focus-visible,.home-search:focus-within{outline:3px solid var(--strong);outline-offset:3px}
.home-product h3 a:hover{text-decoration:underline;text-underline-offset:.2em}
.home-product .home-btn{text-align:center}
.home-product-icon svg{width:26px;height:26px}
@media(max-width:620px){.home-filters{flex-wrap:nowrap;overflow-x:auto;padding:.25rem;scroll-padding-inline:.25rem}.home-filters a{flex:none}.home-product .home-card-actions{align-items:stretch}.home-feature .home-grid{grid-auto-columns:minmax(158px,60%)}}
@media(max-width:355px){.home-grid{grid-template-columns:1fr}.home-hero{grid-template-columns:1fr}.home-hero img{display:none}}

/* Storefront hierarchy and touch layout */
.home-page{--home-accent:#4632a2}
.home-brand span{background:#44329e;color:#fff}
.home-brand svg{width:27px;height:27px}
.home-hero{background:#201946;border-radius:1.5rem;min-height:260px}
.home-hero h1{max-width:17ch;text-wrap:balance}
.home-hero img{display:block;height:100%;max-height:340px}
.home-shortcuts{grid-template-columns:repeat(auto-fit,minmax(94px,1fr));gap:.45rem}
.home-shortcuts a{border-radius:.85rem;min-height:86px;align-content:center}
.home-shortcuts a:hover{background:var(--pale)}
.home-feature{background:transparent;border:1px solid var(--border);padding:clamp(.75rem,2vw,1.4rem)}
.home-product{border-radius:1rem;overflow-wrap:anywhere;min-width:0}
.home-card-actions{margin-top:auto;padding-top:.5rem}
.home-product .home-card-actions>.home-primary{flex:1 1 100%}
.home-price strong{font-size:1.1rem}
.home-status{font-weight:700}
@media(max-width:620px){
 .home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));padding:.55rem}
 .home-hero{min-height:0;grid-template-columns:1fr}
 .home-hero>div{padding:1.15rem}
 .home-hero img{height:106px;min-height:0;mask-image:linear-gradient(to bottom,transparent,#000 28%);object-position:center 54%}
 .home-product .home-card-actions a{min-height:44px}
}
