/* FERA refined interaction layer */
:root{--fera-ease:cubic-bezier(.22,1,.36,1);--fera-ease-soft:cubic-bezier(.16,1,.3,1)}
html{scroll-behavior:smooth}
body{background:#030303}
button,a{-webkit-tap-highlight-color:transparent}

/* Smooth, restrained button motion */
button:not(:disabled),a,.navlink,.icon-btn,.color-btn,.back,.checkout,.empty a,.product-card{
  transition:
    transform .34s var(--fera-ease),
    border-color .34s ease,
    background-color .34s ease,
    box-shadow .34s ease,
    color .28s ease,
    filter .34s ease;
}
button:not(:disabled):hover,.navlink:hover,.icon-btn:hover,.color-btn:hover,.back:hover,.checkout:hover,.empty a:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.82);
  box-shadow:0 7px 24px rgba(255,255,255,.045);
}
button:not(:disabled):active,.navlink:active,.icon-btn:active,.color-btn:active,.back:active,.checkout:active,.empty a:active{
  transform:translateY(0) scale(.985);
  transition-duration:.12s;
  box-shadow:none;
}

/* Nav */
.nav{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(255,255,255,.035),0 12px 35px rgba(0,0,0,.25)}
.navlink{position:relative;overflow:hidden}
.navlink::after{content:"";position:absolute;left:12%;right:12%;bottom:5px;height:1px;background:#fff;transform:scaleX(0);transform-origin:center;transition:transform .38s var(--fera-ease);opacity:.75}
.navlink:hover::after{transform:scaleX(1)}
.navlink:hover{background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.018))}

/* Icons */
.icon-btn svg{transition:transform .38s var(--fera-ease),filter .38s ease}
.icon-btn:hover svg{filter:drop-shadow(0 0 5px rgba(255,255,255,.28));transform:scale(1.04)}
.badge{transition:transform .3s var(--fera-ease)}
.icon-btn:hover .badge{transform:scale(1.06)}

/* Product cards */
.product-card{position:relative;border-radius:4px}
.product-card:hover{transform:translateY(-3px)}
.product-card::after{content:"";position:absolute;inset:-1px;border:1px solid transparent;border-radius:5px;pointer-events:none;transition:border-color .38s ease,box-shadow .38s ease}
.product-card:hover::after{border-color:rgba(255,255,255,.12);box-shadow:0 16px 40px rgba(0,0,0,.3)}
.product-image{transition:border-color .38s ease,box-shadow .38s ease}
.product-card:hover .product-image{border-color:rgba(255,255,255,.34);box-shadow:0 12px 32px rgba(0,0,0,.3)}
.product-image img{will-change:transform;transition:transform .5s var(--fera-ease)!important}
.product-card:hover .product-image img{transform:scale(1.12)!important}
.pegs-grid .product-card:hover .product-image img,.brake-grid .product-card:hover .product-image img{transform:scale(1.18)!important}
.np-grid .product-card:hover .product-image img{transform:scale(1.06)!important}
.product-grid:not(.pegs-grid):not(.brake-grid):not(.np-grid) .product-card:hover .product-image img{transform:scale(1.10)!important}
.stock-pill{transition:transform .35s var(--fera-ease),background-color .3s ease}
.product-card:hover .stock-pill{transform:translateY(-1px)}

/* Quantity controls */
.qty button,.cart-item-controls button,.controls button{transition:transform .28s var(--fera-ease),background .28s ease,border-color .28s ease,box-shadow .28s ease}
.qty button:hover,.cart-item-controls button:hover,.controls button:hover{transform:scale(1.045);background:#161616;border-color:#777;box-shadow:0 5px 15px rgba(0,0,0,.25)}
.qty button:active,.cart-item-controls button:active,.controls button:active{transform:scale(.97);transition-duration:.12s}
.qty input{transition:border-color .28s ease,box-shadow .28s ease}
.qty input:focus{border-color:#888!important;box-shadow:0 0 0 3px rgba(255,255,255,.045);outline:none}

/* Add / checkout */
.add,.cart-checkout{position:relative;overflow:hidden;transition:transform .34s var(--fera-ease),background .34s ease,color .34s ease,box-shadow .34s ease!important}
.add::before,.cart-checkout::before{content:"";position:absolute;top:0;bottom:0;left:-70%;width:34%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);transform:skewX(-18deg);transition:left .75s var(--fera-ease);pointer-events:none}
.add:hover::before,.cart-checkout:hover::before{left:125%}
.add:hover{box-shadow:0 10px 28px rgba(255,255,255,.07)!important}

/* Cart */
.cart-backdrop{backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.cart-drawer{box-shadow:-30px 0 70px rgba(0,0,0,.7),inset 1px 0 rgba(255,255,255,.04)!important}
.cart-close{transition:transform .42s var(--fera-ease),color .3s ease!important}
.cart-close:hover{transform:rotate(90deg) scale(1.04)!important;color:#ddd}
.cart-item{transition:background .3s ease,transform .3s var(--fera-ease)}
.cart-item:hover{background:rgba(255,255,255,.025);transform:translateX(-1px)}

/* Search: NEVER move the hero search when focused */
.hero-search{
  transform:translate3d(-50%,-50%,0)!important;
  transition:box-shadow .38s ease,border-color .38s ease,background-color .38s ease!important;
  will-change:box-shadow;
}
.hero-search:focus-within{
  transform:translate3d(-50%,-50%,0)!important;
  border-color:rgba(255,255,255,.72)!important;
  box-shadow:0 12px 42px rgba(0,0,0,.35);
}
.hero-search input{transition:color .25s ease,opacity .25s ease}
.hero-search button{transition:background-color .3s ease,transform .3s var(--fera-ease)}
.hero-search button:hover{transform:scale(1.035)}
.hero-search button:active{transform:scale(.98)}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* FERA LEGAL FOOTER */
.fera-footer{margin-top:120px;border-top:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,#050505,#000);padding:42px 6vw 28px;color:rgba(255,255,255,.72);}
.fera-footer-inner{max-width:1180px;margin:0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:40px;}
.fera-footer-brand{display:flex;width:170px;height:auto;min-height:0;align-items:flex-start;overflow:visible;margin:0 0 10px;}
.fera-footer-brand img{display:block;width:170px;max-width:100%;height:auto;max-height:none;object-fit:contain;transform:none;}
.fera-footer-inner > div:first-child{display:flex;flex-direction:column;align-items:flex-start;}
.fera-footer-copy{margin-top:0;font-size:11px;line-height:1.7;letter-spacing:1px;color:rgba(255,255,255,.45);max-width:430px;}
.fera-footer-email{display:inline-block;margin-top:11px;color:rgba(255,255,255,.62);font-size:10px;font-weight:700;letter-spacing:1.5px;text-decoration:none;transition:color .35s ease,opacity .35s ease;}
.fera-footer-email:hover{color:#fff;}

.fera-tiktok-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.78);border-radius:4px;background:#000;box-sizing:border-box;text-decoration:none;transition:background-color .3s ease,border-color .3s ease,transform .3s ease,box-shadow .3s ease;}
.fera-tiktok-btn img{display:block;width:27px;height:27px;object-fit:contain;filter:none;transition:filter .3s ease,transform .3s ease;}
.fera-tiktok-btn:hover{background:#fff;border-color:#fff;transform:translateY(-1px);box-shadow:0 8px 22px rgba(255,255,255,.08);}
.fera-tiktok-btn:hover img{filter:invert(1);transform:scale(1.04);}
.fera-tiktok-btn:active{transform:translateY(0) scale(.96);}
.fera-footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 22px;}
.fera-footer-links a{color:rgba(255,255,255,.65);font-size:10px;font-weight:700;letter-spacing:2px;text-decoration:none;transition:color .35s ease,opacity .35s ease;}
.fera-footer-links a:hover{color:#fff;}
.fera-footer-bottom{max-width:1180px;margin:30px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.08);font-size:9px;letter-spacing:1.6px;color:rgba(255,255,255,.32);}
.legal-header{min-height:92px;border-bottom:1px solid rgba(255,255,255,.12);display:flex;align-items:center;padding:0 6vw;}
.legal-header a{display:flex;width:150px;height:82px;align-items:center;overflow:visible;}
.legal-header img{display:block;width:150px;height:auto;transform:none;}
.legal-page{max-width:900px;margin:0 auto;padding:90px 24px 20px;}
.legal-page h1{font-size:clamp(34px,5vw,64px);letter-spacing:8px;margin:0 0 14px;text-transform:uppercase;}
.legal-page .legal-updated{font-size:10px;letter-spacing:2px;color:rgba(255,255,255,.45);margin-bottom:55px;}
.legal-page h2{margin:42px 0 12px;font-size:18px;letter-spacing:3px;text-transform:uppercase;}
.legal-page p,.legal-page li{font-size:14px;line-height:1.85;color:rgba(255,255,255,.72);}
.legal-page ul{padding-left:22px;}
.legal-page a{color:#fff;}
.legal-note{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.025);padding:18px 20px;margin:26px 0;color:rgba(255,255,255,.7);font-size:12px;line-height:1.7;}
@media(max-width:700px){.fera-footer-brand,.fera-footer-brand img{width:150px}.fera-footer-inner{flex-direction:column}.fera-footer-links{justify-content:flex-start}.legal-page{padding-top:55px}.legal-page h1{letter-spacing:5px}}
