:root{--home-bg:#101820;--home-panel:#17232c;--home-line:rgba(255,255,255,.1);--home-muted:#aeb9bd;--home-accent:#f8a106}
.home-main{background:#101820;color:#f4f5f1}
.home-hero{position:relative;isolation:isolate;min-height:min(760px,78vh);display:flex;align-items:center;overflow:hidden;background:#18242a url('../img/hero-bg.webp') center/cover no-repeat;border-bottom:1px solid rgba(248,161,6,.35)}
.home-hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,14,18,.88),rgba(8,14,18,.66) 48%,rgba(8,14,18,.18)),linear-gradient(0deg,rgba(8,14,18,.45),transparent 55%)}
.home-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:40px;padding-block:100px}
.home-hero-copy{max-width:690px}
.eyebrow{display:inline-flex;align-items:center;gap:10px;color:#f8b33c;font-size:.82rem;font-weight:700;letter-spacing:.04em}
.eyebrow:before{content:"";width:26px;height:1px;background:currentColor}
.home-hero h1{font-size:clamp(2.7rem,6vw,5.6rem);line-height:1.18;margin:22px 0 18px;font-weight:900;color:#fff}
.home-hero h1 span{color:var(--home-accent)}
.home-hero-copy p{max-width:590px;color:#e0e5e3;font-size:clamp(1rem,1.5vw,1.2rem);line-height:2}
.home-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.home-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 22px;border-radius:8px;text-decoration:none;font-weight:800;transition:background .2s,border-color .2s,color .2s}
.home-button-primary{background:var(--home-accent);color:#151a1d;border:1px solid var(--home-accent)}
.home-button-primary:hover{background:#ffc04b;border-color:#ffc04b}
.home-button-ghost{border:1px solid rgba(255,255,255,.5);color:#fff;background:rgba(12,20,25,.28)}
.home-button-ghost:hover{background:rgba(255,255,255,.12)}
.hero-note{width:230px;flex:none;display:grid;gap:14px;padding:24px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(10,18,22,.28);backdrop-filter:blur(8px);transform:rotate(-4deg);color:#fff}
.hero-note span{font-size:.65rem;letter-spacing:.22em;color:#f8b33c}
.hero-note b{font-size:1.7rem;line-height:1.2;letter-spacing:.04em}
.hero-note i{font-size:.62rem;font-style:normal;letter-spacing:.18em;color:#d0d8d6}
.hero-scroll{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.5);border-radius:50%;color:#fff;text-decoration:none;font-size:1.3rem}
.home-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:28px;border:1px solid var(--home-line);border-radius:12px;background:#17232c}
.home-benefits>div{display:flex;align-items:center;gap:14px;padding:22px 24px}
.home-benefits>div+div{border-right:1px solid var(--home-line)}
.benefit-index{font-size:1.25rem;font-weight:900;color:var(--home-accent)}
.home-benefits b,.home-benefits small{display:block}
.home-benefits b{font-size:.95rem}
.home-benefits small{margin-top:5px;color:var(--home-muted);font-size:.76rem;line-height:1.7}
.home-section{padding-block:78px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}
.section-heading h2{font-size:clamp(1.6rem,3vw,2.35rem);margin:10px 0 7px;color:#fff}
.section-heading p{color:var(--home-muted);font-size:.9rem;line-height:1.8}
.section-link{display:inline-flex;align-items:center;gap:10px;color:#f8b33c;text-decoration:none;font-weight:700;white-space:nowrap}
.section-link span{font-size:1.25rem}
.home-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-category-card{position:relative;min-height:148px;display:flex;flex-direction:column;justify-content:space-between;padding:20px;border:1px solid var(--home-line);border-radius:10px;background:linear-gradient(135deg,#1b2a33,#15212a);color:#fff;text-decoration:none;overflow:hidden;transition:border-color .2s,background .2s}
.home-category-card:after{content:"";position:absolute;width:130px;height:130px;left:-35px;bottom:-65px;border:1px solid rgba(248,161,6,.18);border-radius:50%;box-shadow:0 0 0 18px rgba(248,161,6,.035),0 0 0 38px rgba(248,161,6,.025)}
.home-category-card:hover{border-color:rgba(248,161,6,.65);background:linear-gradient(135deg,#24343d,#192630)}
.category-number{color:#f8b33c;font-size:.75rem;font-weight:800;letter-spacing:.12em}
.category-name{font-size:1.18rem;font-weight:800}
.category-arrow{position:absolute;left:20px;bottom:18px;color:#f8b33c;font-size:1.25rem}
.home-products-section{background:#141f27;border-block:1px solid var(--home-line)}
.home-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-product-card{min-width:0;overflow:hidden;border:1px solid var(--home-line);border-radius:11px;background:#1b2932;display:flex;flex-direction:column}
.home-product-media{position:relative;display:block;aspect-ratio:4/3;background:#24323b;overflow:hidden}
.home-product-media img{width:100%;height:100%;object-fit:cover;display:block}
.home-product-media.is-placeholder img{object-fit:contain;padding:28px;opacity:.68}
.home-product-content{display:flex;flex:1;flex-direction:column;padding:16px;gap:9px}
.home-product-category{color:#f8b33c;font-size:.75rem}
.home-product-title{font-size:1rem;line-height:1.7;color:#fff;text-decoration:none;font-weight:800}
.home-product-price{font-size:1.05rem;font-weight:900;color:#f8b33c;margin-top:auto;padding-top:8px}
.home-product-stock{font-size:.76rem;color:#aeb9bd}
.home-product-stock.available{color:#8bd5a8}
.home-product-stock.unavailable{color:#ff9c91}
.home-product-action{display:flex;justify-content:center;margin-top:8px;padding:10px;border-radius:7px;background:rgba(248,161,6,.12);color:#ffc04b;text-decoration:none;font-weight:800}
.home-product-action:hover{background:rgba(248,161,6,.22)}
.home-loading,.home-empty{grid-column:1/-1;padding:28px;text-align:center;border:1px dashed var(--home-line);border-radius:10px;color:var(--home-muted)}
.home-bottom-cta{display:flex;align-items:center;justify-content:space-between;gap:25px;padding-block:56px}
.home-bottom-cta h2{margin:10px 0;font-size:clamp(1.4rem,3vw,2rem)}
.home-bottom-cta p{color:var(--home-muted);line-height:1.8}
.site-footer{background:#0b1217;border-top:1px solid var(--home-line);color:#e8ece9}
.site-footer .footer-container{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:35px;padding-block:48px}
.site-footer h2{font-size:1rem;margin-bottom:16px}
.site-footer .footer-about{max-width:440px;color:var(--home-muted);line-height:2;margin-top:14px}
.site-footer .footer-logo{font-size:1.35rem;font-weight:900;color:#f8b33c;text-decoration:none}
.site-footer .footer-links{list-style:none;display:grid;gap:12px}
.site-footer .footer-links a,.site-footer .footer-bottom a{color:var(--home-muted);text-decoration:none}
.site-footer .footer-links a:hover,.site-footer .footer-bottom a:hover{color:#f8b33c}
.site-footer .footer-bottom{display:flex;justify-content:space-between;gap:15px;padding:18px 0;border-top:1px solid var(--home-line);font-size:.8rem;color:var(--home-muted)}
.skip-link{position:absolute;top:-60px;right:12px;z-index:5000;background:#f8a106;color:#111;padding:10px 14px;border-radius:6px}
.skip-link:focus{top:12px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.header-cart-link{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none;padding:9px 12px;border:1px solid var(--home-line);border-radius:8px}
.header-cart-link .cart-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:#f8a106;color:#151a1d;font-size:.72rem;font-weight:900}
.product-search-shell{background:#111a20;border-bottom:1px solid var(--home-line)}
.product-search-bar{position:relative;max-width:760px;padding-block:12px}
.product-search-form{display:flex;gap:8px}
.product-search-input{min-width:0;flex:1;padding:12px 15px;border:1px solid #35434b;border-radius:8px;background:#1b2932;color:#fff;font:inherit}
.product-search-form button{padding:0 20px;border:0;border-radius:8px;background:#f8a106;color:#111;font:inherit;font-weight:800}
.mobile-menu{z-index:1200}
.bottom-nav{z-index:1100}
@media(max-width:900px){.home-hero{min-height:650px}.hero-note{width:190px}.home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.home-hero{min-height:610px;background-position:58% center}.home-hero-shade{background:linear-gradient(90deg,rgba(8,14,18,.9),rgba(8,14,18,.56)),linear-gradient(0deg,rgba(8,14,18,.5),transparent)}.home-hero-inner{padding-block:72px;display:block}.home-hero-copy{max-width:100%}.home-hero h1{font-size:clamp(2.6rem,12vw,4rem)}.home-hero-copy p{font-size:.96rem}.hero-note{display:none}.home-benefits{grid-template-columns:1fr;margin-top:14px}.home-benefits>div{padding:14px 18px}.home-benefits>div+div{border-right:0;border-top:1px solid var(--home-line)}.home-section{padding-block:54px}.section-heading{align-items:start;flex-direction:column}.home-category-grid{gap:10px}.home-category-card{min-height:125px;padding:15px}.category-name{font-size:1rem}.home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-product-content{padding:11px;gap:6px}.home-product-title{font-size:.87rem}.home-product-price{font-size:.92rem}.home-bottom-cta{align-items:flex-start;flex-direction:column;padding-block:42px}.site-footer .footer-container{grid-template-columns:1fr;gap:25px;padding-block:35px}.site-footer .footer-bottom{flex-direction:column}.header-actions{gap:8px}.header-cart-link{font-size:.75rem;padding:7px}.desktop-nav{display:none}.product-search-bar{padding-inline:12px}.bottom-nav{position:fixed;bottom:0;right:0;left:0;display:flex!important;justify-content:space-around;background:#0b1217;border-top:1px solid #34414a;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));}.bottom-nav .nav-item{color:#d9e0df;text-decoration:none;font-size:.72rem}.home-main{padding-bottom:64px}}
@media(max-width:380px){.home-category-grid{grid-template-columns:1fr}.home-product-grid{gap:8px}.home-product-content{padding:9px}.home-product-title{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.home-main *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Phase 5.5.4: bounded catalogue loading skeleton and recoverable request state */
.home-skeleton-card{min-width:0;overflow:hidden;border:1px solid var(--home-line);border-radius:11px;background:#1b2932;display:flex;flex-direction:column;gap:13px;padding-bottom:17px}
.home-skeleton-card span{display:block;aspect-ratio:4/3;background:linear-gradient(100deg,#24323b 20%,#31434e 38%,#24323b 58%);background-size:220% 100%;animation:home-skeleton-shimmer 1.35s ease-in-out infinite}
.home-skeleton-card i,.home-skeleton-card b,.home-skeleton-card em{display:block;height:11px;margin-inline:16px;border-radius:20px;background:#2a3a44}
.home-skeleton-card i{width:34%;height:8px;background:#3a3b36}
.home-skeleton-card b{width:72%}
.home-skeleton-card em{width:48%;height:17px;margin-top:4px}
.home-products-retry{min-height:40px;margin-top:12px;padding:8px 17px;border:1px solid rgba(248,161,6,.45);border-radius:8px;background:rgba(248,161,6,.12);color:#ffc04b;font:inherit;font-weight:800;cursor:pointer}
.home-products-retry:hover{background:rgba(248,161,6,.2)}
.home-products-retry:focus-visible{outline:2px solid #ffc04b;outline-offset:3px}
#product-list-grid[aria-busy="true"]{min-height:180px}
@keyframes home-skeleton-shimmer{to{background-position-x:-220%}}
@media(prefers-reduced-motion:reduce){.home-skeleton-card span{animation:none;background:#293a44}}


/* Phase 6: compact, storefront-style hero carousel */
.home-hero-slider{min-height:0;height:clamp(300px,34vw,430px);display:block;position:relative;background:#111b22;border:0;overflow:hidden}
.hero-slides,.hero-slide{position:absolute;inset:0}
.hero-slide{display:flex;align-items:center;opacity:0;visibility:hidden;pointer-events:none;background-image:linear-gradient(90deg,rgba(7,13,17,.86),rgba(7,13,17,.56) 55%,rgba(7,13,17,.18)),var(--slide-image);background-position:center;background-size:cover;transition:opacity .55s ease,visibility .55s ease}
.hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.hero-slide-content{position:relative;z-index:1;width:100%;padding-block:42px!important;color:#fff}
.hero-slide-kicker{display:block;margin-bottom:12px;color:#ffc04b;font-size:.72rem;font-weight:800;letter-spacing:.12em}
.hero-slide h1,.hero-slide h2{max-width:680px;margin:0 0 10px;color:#fff;font-size:clamp(1.7rem,3.7vw,3.2rem);line-height:1.3;font-weight:900}
.hero-slide h1 strong{color:#ffc04b}
.hero-slide p{max-width:520px;margin:0;color:#edf1ef;font-size:clamp(.88rem,1.25vw,1.05rem);line-height:1.9}
.hero-slide-cta{display:inline-flex;align-items:center;gap:14px;margin-top:20px;min-height:42px;padding:9px 17px;border-radius:8px;background:#f8a106;color:#151a1d;text-decoration:none;font-size:.85rem;font-weight:900}
.hero-slider-controls{position:absolute;z-index:3;left:max(18px,calc((100% - 1200px)/2));bottom:22px;display:flex;align-items:center;gap:12px}
.hero-slider-arrow{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.48);border-radius:50%;background:rgba(8,14,18,.45);color:#fff;font-size:1.35rem;cursor:pointer}
.hero-slider-dots{display:flex;align-items:center;gap:7px}
.hero-slider-dots button{width:7px;height:7px;padding:0;border:0;border-radius:10px;background:rgba(255,255,255,.5);cursor:pointer;transition:width .2s,background .2s}
.hero-slider-dots button.is-active{width:22px;background:#f8a106}
.home-hero-slider .hero-slide:focus-within{opacity:1;visibility:visible}
@media(max-width:680px){
 .home-hero-slider{height:clamp(150px,42vw,190px);min-height:0;margin:10px 12px 0;border:1px solid rgba(255,255,255,.1);border-radius:13px}
 .hero-slide{background-image:linear-gradient(90deg,rgba(7,13,17,.91),rgba(7,13,17,.68) 58%,rgba(7,13,17,.24)),var(--slide-image);background-position:center}
 .hero-slide-content{padding:18px 16px!important}
 .hero-slide-kicker{font-size:.55rem;margin-bottom:5px;letter-spacing:.08em}
 .hero-slide h1,.hero-slide h2{max-width:78%;font-size:clamp(1rem,4.4vw,1.35rem);line-height:1.45;margin-bottom:4px}
 .hero-slide p{max-width:78%;font-size:clamp(.65rem,2.7vw,.78rem);line-height:1.55}
 .hero-slide-cta{min-height:29px;margin-top:8px;padding:5px 10px;gap:8px;font-size:.65rem;border-radius:6px}
 .hero-slider-controls{left:12px;bottom:9px;gap:7px}
 .hero-slider-arrow{width:25px;height:25px;font-size:1rem}
 .hero-slider-dots{gap:5px}
 .hero-slider-dots button{width:5px;height:5px}
 .hero-slider-dots button.is-active{width:15px}
 .home-hero-slider+.home-benefits{margin-top:12px}
 .home-main{padding-bottom:68px}
}
@media(max-width:380px){
 .home-hero-slider{height:154px;margin-inline:9px}
 .hero-slide-content{padding-inline:12px!important}
 .hero-slide h1,.hero-slide h2{font-size:1rem}
 .hero-slide p{font-size:.64rem}
 .hero-slide-cta{margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-slider-dots button{transition:none!important}}


/* Phase 6: zero top gap on mobile; banner starts directly below the search bar */
@media(max-width:680px){
 .home-main{margin:0!important;padding-top:0!important}
 .home-hero-slider{margin:0 12px!important}
}
