/* ===== NATTYFIT — Carbon Sky site style (Salla / Raed) ===== */
:root{--nf-bg:#0b0d0f;--nf-card:#111418;--nf-card2:#161a1f;--nf-line:rgba(207,233,246,.10);--nf-txt:#E6EDF2;--nf-mut:#9FB0BC;--nf-blue:#67AFD9;--nf-pale:#CFE9F6;--nf-ease:cubic-bezier(.2,.8,.2,1)}
html{scroll-behavior:smooth}
::selection{background:var(--nf-blue);color:#0b0d0f}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#08090b}
::-webkit-scrollbar-thumb{background:#1f2a33;border-radius:10px;border:2px solid #08090b}
::-webkit-scrollbar-thumb:hover{background:var(--nf-blue)}
html{scrollbar-color:#1f2a33 #08090b}

/* ---------- Page, header, footer ---------- */
body.theme-raed,body.theme-raed .app-inner,body.theme-raed main{background:var(--nf-bg)!important;color:var(--nf-txt)}
.store-header,.store-header .top-navbar,.store-header .main-nav-container,.store-header .inner,.store-header .bg-white{background:var(--nf-bg)!important;border-color:var(--nf-line)!important;box-shadow:none!important}
.store-header .main-nav-container{transition:background .35s ease,backdrop-filter .35s ease,box-shadow .35s ease}
body.nf-scrolled .store-header .main-nav-container,body.nf-scrolled .store-header .main-nav-container .inner{background:rgba(11,13,15,.72)!important;backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);box-shadow:0 10px 30px rgba(0,0,0,.35)!important;border-bottom:1px solid var(--nf-line)!important}
.store-header a,.store-header span,.store-header button{color:var(--nf-txt)!important}
.store-header .main-menu>li>a{position:relative;transition:color .25s ease}
.store-header .main-menu>li>a:after{content:"";position:absolute;right:0;bottom:-6px;height:2px;width:0;background:var(--nf-blue);transition:width .3s var(--nf-ease)}
.store-header .main-menu>li>a:hover{color:var(--nf-blue)!important}
.store-header .main-menu>li>a:hover:after{width:100%}
.store-header input{background:var(--nf-card2)!important;color:#fff!important;border-color:var(--nf-line)!important}
.store-header ul ul,.store-header .sub-menu,.mm-ocd__content,.mm-spn{background:var(--nf-card)!important;color:var(--nf-txt)!important}
.store-footer,.store-footer__inner,.store-footer>div,.store-footer .container{background:#080a0c!important;color:#AEB9C1!important}
.store-footer a,.store-footer p,.store-footer h3,.store-footer span,.store-footer li{color:#AEB9C1!important}
.store-footer a:hover{color:var(--nf-blue)!important}

/* ---------- Generic surfaces ---------- */
body.theme-raed main .bg-white,body.theme-raed main section.bg-white,.sticky-product-bar{background:var(--nf-card)!important;border:1px solid var(--nf-line);border-radius:18px}
body.theme-raed main .bg-gray-50,body.theme-raed main .bg-gray-100,.s-comments{background:var(--nf-card)!important}
body.theme-raed main h1,body.theme-raed main h2,body.theme-raed main h3,body.theme-raed main h4{color:#fff!important}
body.theme-raed main .text-gray-400,body.theme-raed main .text-gray-500,body.theme-raed main .text-gray-600,body.theme-raed main .text-gray-700{color:var(--nf-mut)!important}
.breadcrumbs a,.breadcrumbs span{color:var(--nf-mut)!important}
body.theme-raed main hr,body.theme-raed main .border,body.theme-raed main .border-b,body.theme-raed main .border-t{border-color:var(--nf-line)!important}

/* ---------- Product page ---------- */
.product__description,.product__description *{background:transparent!important;color:var(--nf-txt)!important}
.product__description strong,.product__description b{color:#fff!important}
.product__description h2{font-size:1.35em}
.product__description h2,.product__description h3{color:var(--nf-blue)!important;margin-top:1.2em}
.s-slider-container,.homeslider__slide,.magnify-wrapper{background:var(--nf-card)!important;border-radius:20px;overflow:hidden}
.total-price,.price-wrapper .text-primary,.product-price{color:var(--nf-blue)!important}
/* mobile buy box: add-to-cart + buy-now on one row, Apple Pay full width below */
@media (max-width:640px){
  .sticky-product-bar{padding:14px!important}
  salla-add-product-button.s-add-product-button-with-apple-pay{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  salla-add-product-button .s-add-product-button-main{flex:1 1 100%!important;width:100%!important;display:flex!important;gap:8px}
  salla-add-product-button .s-add-product-button-main>salla-button,salla-add-product-button .s-add-product-button-mini-checkout{flex:1 1 50%!important}
  salla-add-product-button .s-add-product-button-main>salla-button button,salla-add-product-button .s-add-product-button-mini-checkout button{width:100%!important}
  salla-add-product-button salla-quick-buy{flex:1 1 100%!important;width:100%!important}
  salla-add-product-button salla-quick-buy apple-pay-button{width:100%!important;display:block}
}

/* ---------- Buttons ---------- */
.s-button-primary,.btn--primary,salla-add-product-button button,.s-add-product-button-main{position:relative;overflow:hidden;background:var(--nf-blue)!important;color:#0b0d0f!important;border-radius:14px!important;font-weight:800!important;transition:transform .3s var(--nf-ease),box-shadow .3s ease!important}
.s-button-primary:hover,.btn--primary:hover,salla-add-product-button button:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(103,175,217,.4)!important}
.s-button-primary-outline,.btn--outline{border-color:var(--nf-blue)!important;color:var(--nf-blue)!important;background:transparent!important;border-radius:14px!important}
.nf-ripple{position:absolute;border-radius:50%;transform:scale(0);background:rgba(255,255,255,.45);animation:nfRipple .6s ease-out forwards;pointer-events:none}
@keyframes nfRipple{to{transform:scale(4);opacity:0}}

/* ---------- Product cards ---------- */
.s-product-card-entry{background:var(--nf-card)!important;border:1px solid var(--nf-line)!important;border-radius:20px!important;overflow:hidden;transition:transform .35s var(--nf-ease),box-shadow .35s ease,border-color .35s ease!important}
.s-product-card-entry:hover{transform:translateY(-6px);border-color:var(--nf-blue)!important;box-shadow:0 20px 50px rgba(103,175,217,.15)}
.s-product-card-image{background:var(--nf-card2)!important}
.s-product-card-image img{transition:transform .6s var(--nf-ease)}
.s-product-card-entry:hover .s-product-card-image img{transform:scale(1.06)}
.s-product-card-content-title a,.s-product-card-content-title{color:#fff!important}
.s-product-card-price,.s-product-card-sale-price h4{color:var(--nf-blue)!important}

/* ---------- Forms & cart ---------- */
body.theme-raed main input,body.theme-raed main select,body.theme-raed main textarea,.s-quantity-input-container{background:var(--nf-card2)!important;color:#fff!important;border-color:var(--nf-line)!important}
.cart-item,.cart-summary,.s-cart-summary-wrapper{background:var(--nf-card)!important;border:1px solid var(--nf-line)!important;border-radius:18px}
.s-cart-summary-card,.s-cart-summary-card-bar,salla-cart-summary-card{background:var(--nf-card)!important;color:var(--nf-txt)!important;border:1px solid var(--nf-line)!important;border-radius:18px!important}
.s-cart-summary-card *{color:inherit}
.s-modal-body,.s-modal-wrapper .s-modal-body{background:var(--nf-card)!important;color:var(--nf-txt)!important}

/* ---------- Spotlight hover (JS sets --mx/--my) ---------- */
.nf-spot{position:relative;isolation:isolate}
.nf-spot:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;opacity:0;transition:opacity .35s ease;background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(103,175,217,.16),transparent 45%)}
.nf-spot:hover:before{opacity:1}
.nf-spot>*{position:relative;z-index:1}

/* ---------- JS reveal (works in every browser) ---------- */
.nf-js .nf-rv{animation:none!important}
.nf-reveal{opacity:0;transform:translateY(34px);transition:opacity .9s var(--nf-ease),transform .9s var(--nf-ease);transition-delay:var(--nf-d,0s)}
.nf-reveal.nf-in{opacity:1;transform:none}

/* ---------- Scroll progress ---------- */
#nf-progress{position:fixed;top:0;right:0;left:0;height:3px;z-index:9999;pointer-events:none;background:linear-gradient(90deg,var(--nf-pale),var(--nf-blue));transform-origin:right;transform:scaleX(0);box-shadow:0 0 12px rgba(103,175,217,.7)}

/* ---------- Mobile sticky CTA ---------- */
#nf-sticky{position:fixed;right:12px;left:12px;bottom:12px;z-index:9990;display:none;transform:translateY(140%);transition:transform .45s var(--nf-ease)}
#nf-sticky.nf-show{transform:none}
#nf-sticky a{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--nf-blue);color:#0b0d0f!important;font-weight:800;font-size:16px;padding:15px;border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.5),0 0 0 1px rgba(207,233,246,.25);text-decoration:none!important}
@media (max-width:768px){#nf-sticky{display:block}}

/* ---------- WhatsApp float ---------- */
#nf-wa{position:fixed;left:18px;bottom:18px;z-index:9991;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#111418;border:1px solid rgba(103,175,217,.6);box-shadow:0 10px 30px rgba(0,0,0,.5);transition:transform .3s var(--nf-ease),box-shadow .3s ease}
#nf-wa:hover{transform:translateY(-4px) scale(1.05);box-shadow:0 14px 40px rgba(103,175,217,.35)}
#nf-wa svg{width:28px;height:28px;fill:var(--nf-blue)}
#nf-wa:after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(103,175,217,.5);animation:nfPulse 2.4s ease-out infinite}
@keyframes nfPulse{0%{transform:scale(.85);opacity:.9}100%{transform:scale(1.35);opacity:0}}
@media (max-width:768px){#nf-wa{bottom:84px;left:14px;width:50px;height:50px}}

/* ---------- Hero tilt ---------- */
.nf-frame{transform-style:preserve-3d;will-change:transform}
.nf-tilting{animation:none!important;transition:transform .15s ease-out}

/* ---------- Page intro ---------- */
@keyframes nfFadeIn{from{opacity:0}to{opacity:1}}
body.theme-raed main{animation:nfFadeIn .6s ease both}

@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{animation:none!important;transition:none!important}
  .nf-reveal{opacity:1!important;transform:none!important}
}