/* LoadX effects: hero 3D, slider, scroll 3D, features */
html{scroll-behavior:smooth}
#scrollBar{position:fixed;top:0;left:0;height:3px;width:0;background:#000;z-index:999}



.features{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;max-width:1100px;margin:70px auto 0;padding:0 20px}
.feat{flex:1 1 220px;text-align:center;padding:26px 18px;background:rgba(18,18,18,.95);border:1px solid rgba(255,255,255,.1);border-radius:12px}
.feat b{display:block;font-size:2rem;margin-bottom:6px}
.feat h4{font-size:1.1rem;margin-bottom:4px}
.feat span{opacity:.7;font-size:.9rem}

/* 3D scroll reveal + tilt */
.product-grid{perspective:1400px}
.product-card{will-change:transform;transition:opacity .7s,transform .7s cubic-bezier(.2,.8,.2,1),box-shadow .3s}
.product-card.pre{opacity:0;transform:rotateX(35deg) translateY(70px) scale(.92)}
.product-card.tilting{transition:transform .08s,box-shadow .3s;box-shadow:0 20px 45px rgba(204,0,0,.45)}
.catalog-section-title{transition:opacity .8s,transform .8s}
.catalog-section-title.pre{opacity:0;transform:translateZ(0) scale(.8)}
.feat,.slider{transition:opacity .8s,transform .8s}
.feat.pre,.slider.pre{opacity:0;transform:translateY(50px)}

.slider{max-width:1200px;margin:40px auto 0;padding:0 10px;overflow:hidden}
.slider h2{text-align:center;font-size:2rem;margin-bottom:10px}
.cf{position:relative;height:440px;perspective:1100px;direction:ltr}
.cf-card{backface-visibility:hidden;-webkit-font-smoothing:antialiased;position:absolute;left:50%;top:14px;width:290px;margin-left:-145px;background:#fff;color:#000;border-radius:14px;padding:14px;text-align:center;cursor:pointer;box-shadow:0 20px 40px rgba(0,0,0,.6)}
.cf-card img{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:8px;display:block;background:#fff;image-rendering:auto;backface-visibility:hidden}
.cf-card h3{margin:10px 0 2px;font-size:1.1rem}
.cf-card .pr{font-weight:900}
.cf-card a{display:inline-block;margin-top:8px;padding:8px 24px;border-radius:30px;background:#000;color:#fff;text-decoration:none;font-weight:900;opacity:0;pointer-events:none;transition:.3s}
.cf-card.c a{opacity:1;pointer-events:auto}
.cf-btn{direction:ltr;unicode-bidi:isolate;position:absolute;top:42%;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#000;font-size:1.3rem;cursor:pointer;z-index:50}
.cf-prev{left:14px}.cf-next{right:14px}
@media(max-width:700px){.cf{height:400px}.cf-card{width:230px;margin-left:-115px}}

.cf{touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.cf.drag{cursor:grabbing}
.cf.drag .cf-card{transition:none!important}
.cf-card img{-webkit-user-drag:none;user-select:none}

/* phones: two mousepads per row */
@media(max-width:700px){
 .product-grid{gap:10px;padding:0 8px;margin-top:20px}
 .product-card{width:calc(50% - 5px);padding:8px}
 .product-image-container{padding:8px}
 .product-image-container .size-badge{top:5px;left:5px;font-size:.58rem;padding:2px 5px}
 .product-image-container .new-badge{top:5px;right:5px;font-size:.58rem;padding:2px 5px}
 .product-title{font-size:.88rem}
 .product-price{font-size:.9rem}
 .center-content{margin:10px 0;gap:4px}
 .buy-btn{font-size:.85rem;padding:8px 4px}
}

/* equal-height cards: add-to-cart buttons always line up on the same row */
.product-card{display:flex;flex-direction:column}
.product-details{display:flex;flex-direction:column;flex:1}
.product-details .product-link{flex:1;justify-content:flex-start}
.buy-btn{margin-top:auto;box-sizing:border-box;min-height:42px;display:flex;align-items:center;justify-content:center;line-height:1.2}
@media(max-width:700px){
 .product-title{min-height:2.6em;display:flex;align-items:center;justify-content:center;line-height:1.3}
 .buy-btn{min-height:40px}
}

/* smoother carousel on phones */
.cf-card{will-change:transform,opacity;-webkit-tap-highlight-color:transparent}
.cf{-webkit-transform:translateZ(0);transform:translateZ(0)}
@media(max-width:700px){
 .cf-card{box-shadow:0 8px 18px rgba(0,0,0,.5)}
 .slider.pre{opacity:1;transform:none}
}

/* all carousel cards same height, even when the title wraps to 2 lines */
.cf-card h3{min-height:2.6em;display:flex;align-items:center;justify-content:center;line-height:1.3}

/* carousel cards: same height whether the title is 1 or 2 lines */
.cf-card h3{display:flex;align-items:center;justify-content:center;line-height:1.3;min-height:2.6em}
.cf-card .pr{line-height:1.3}

/* no sideways scrolling when the window is narrowed */
html,body{max-width:100%;overflow-x:clip}
.product-grid{max-width:100%;box-sizing:border-box}
.product-card{max-width:100%;box-sizing:border-box}
@media(max-width:1100px){.product-card{width:min(320px,calc(50% - 12px))}}
@media(max-width:700px){.product-card{width:calc(50% - 5px)}}
