/* FitMyShoes V5.30.3: sports photography behind content, readable cards above. */
:root{--fms-sport-photo:url('hero-sports.jpg')}
body:has(#home){--fms-sport-photo:url('hero-sports.jpg')}
body:has(#productPage){--fms-sport-photo:url('hero-sports.jpg')}
body[data-fms-sport="running"]{--fms-sport-photo:url('sport-running.jpg')}
body[data-fms-sport="tennis"]{--fms-sport-photo:url('sport-tennis.jpg')}
body[data-fms-sport="padel"]{--fms-sport-photo:url('sport-padel.jpg')}
body[data-fms-sport="fitness"]{--fms-sport-photo:url('sport-fitness.jpg')}
body[data-fms-sport="basketball"]{--fms-sport-photo:url('sport-basketball.jpg')}
body[data-fms-sport="outdoor"]{--fms-sport-photo:url('sport-outdoor.jpg')}
body[data-fms-sport="handball"]{--fms-sport-photo:url('sport-handball.jpg')}
body[data-fms-sport="freizeit"]{--fms-sport-photo:url('sport-freizeit.jpg')}
/* Fixed photographic background: restrained contrast, no scrolling parallax. */
body:has(#home),body:has(#productPage){background:#f3f0f7!important;position:relative;isolation:isolate}
body:has(#home)::before,body:has(#productPage)::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(180deg,rgba(24,19,35,.54),rgba(25,20,36,.40) 40%,rgba(25,20,36,.60)),var(--fms-sport-photo);background-position:center;background-size:cover;background-repeat:no-repeat}
/* Preserve clear product and search surfaces. */
body:has(#home) main,body:has(#productPage) main{position:relative;z-index:1;background:transparent!important}
body:has(#home) main>section,body:has(#productPage) .product-page{position:relative}
body:has(#home) .hero,body:has(#home) .shoe-search-section,body:has(#home) .sport-section,body:has(#home) .benefits,body:has(#home) .finder,body:has(#home) .matches,body:has(#home) .favorites,body:has(#home) .fms-shop-ad,body:has(#home) .fms-shop-ads-grid,body:has(#home) .fms-ads-divider{background:rgba(255,255,255,.96)!important;border-radius:22px;box-shadow:0 12px 38px rgba(20,16,31,.13);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body:has(#home) .hero{margin-top:22px}
body:has(#home) .hero-copy,body:has(#home) .hero-copy h1,body:has(#home) .hero-copy p{color:#211e2a}
body:has(#home) .hero-copy h1 span{color:#7353c6}
body:has(#productPage) .product-page{background:rgba(255,255,255,.97)!important;border-radius:24px;box-shadow:0 18px 48px rgba(17,13,28,.24);margin-top:24px;margin-bottom:36px;padding:clamp(12px,2vw,30px)}
/* Sport rails are redundant once a full-page sport background is present. */
body:has(#productPage) .fms-sport-rails{display:none!important}
body:has(#home) footer,body:has(#productPage) footer{position:relative;z-index:1}
@media(max-width:700px){body:has(#home)::before,body:has(#productPage)::before{background-image:linear-gradient(180deg,rgba(24,19,35,.70),rgba(24,19,35,.55)),var(--fms-sport-photo);background-position:center center}body:has(#home) .hero,body:has(#home) .shoe-search-section,body:has(#home) .sport-section,body:has(#home) .benefits,body:has(#home) .finder,body:has(#home) .matches,body:has(#home) .favorites{border-radius:14px}body:has(#productPage) .product-page{margin:12px 8px 24px;padding:12px;border-radius:16px}}
@media(prefers-reduced-transparency:reduce){body:has(#home) main>section,body:has(#productPage) .product-page{backdrop-filter:none;-webkit-backdrop-filter:none}}
