/* KOLFAT STORE / HERO FIX V5 */
.store-btn,
.store-btn:link,
.store-btn:visited,
.store-btn:hover,
.store-btn:active{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:16px!important;
  width:350px!important;
  max-width:100%!important;
  min-height:68px!important;
  padding:10px 18px!important;
  border:1px solid #fff!important;
  border-radius:10px!important;
  background:#fff!important;
  background-color:#fff!important;
  color:#050505!important;
  text-decoration:none!important;
  opacity:1!important;
  visibility:visible!important;
  mix-blend-mode:normal!important;
  isolation:isolate!important;
  overflow:visible!important;
  box-shadow:0 10px 30px rgba(0,0,0,.40)!important;
}
.store-btn:hover{background:#f4f4f4!important;background-color:#f4f4f4!important;transform:translateY(-1px)!important}
.store-btn::before,.store-btn::after{display:none!important;content:none!important}
.store-btn .store-copy,
.store-btn .store-copy small,
.store-btn .store-copy strong{color:#050505!important;opacity:1!important;visibility:visible!important;mix-blend-mode:normal!important}
.store-btn .store-icon{opacity:1!important;visibility:visible!important;filter:none!important;mix-blend-mode:normal!important}
.store-section{overflow:visible!important}
.store-section .store-btn{margin-top:0!important}

html[data-kolfat-page="product"] .hero{
  position:relative!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
}
html[data-kolfat-page="product"] .hero-bg{
  height:100%!important;
  min-height:100%!important;
}
html[data-kolfat-page="product"] .hero-inner{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding:clamp(165px,18vh,190px) 0 90px!important;
}
html[data-kolfat-page="product"] .hero-copy{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  width:min(620px,42vw)!important;
  margin:0 0 0 clamp(150px,10vw,205px)!important;
}
html[dir="rtl"][data-kolfat-page="product"] .hero-copy{
  margin:0 clamp(150px,10vw,205px) 0 auto!important;
}

/* Farsi + Arabic only: keep RTL typography, but physically anchor the copy to the darker LEFT side. */
html[lang="fa"][data-kolfat-page="product"] .hero-copy,
html[lang="ar"][data-kolfat-page="product"] .hero-copy{
  width:min(500px,36vw)!important;
  max-width:500px!important;
  margin-left:clamp(70px,7vw,130px)!important;
  margin-right:auto!important;
  direction:rtl!important;
  text-align:right!important;
}
html[lang="fa"][data-kolfat-page="product"] .hero-bg,
html[lang="ar"][data-kolfat-page="product"] .hero-bg{
  background-position:74% center!important;
}
html[lang="fa"][data-kolfat-page="product"] .hero-bg:before,
html[lang="ar"][data-kolfat-page="product"] .hero-bg:before{
  width:62%!important;
  background:linear-gradient(90deg,rgba(5,5,5,.99) 0%,rgba(5,5,5,.94) 40%,rgba(5,5,5,.72) 68%,rgba(5,5,5,.20) 88%,transparent 100%)!important;
}

html[data-kolfat-page="product"] .sources{margin-bottom:0!important}
html[data-kolfat-page="product"] .sources + .store-btn{margin-top:18px!important;margin-bottom:0!important}

@media(max-width:980px){
  html[data-kolfat-page="product"] .hero-inner{padding:135px 0 80px!important}
  html[data-kolfat-page="product"] .hero-copy{
    width:min(650px,78vw)!important;
    margin-left:clamp(32px,7vw,72px)!important;
  }
  html[dir="rtl"][data-kolfat-page="product"] .hero-copy{
    margin-left:auto!important;
    margin-right:clamp(32px,7vw,72px)!important;
  }

  /* Critical override: do NOT let FA/AR expand to the generic 78vw RTL block. */
  html[lang="fa"][data-kolfat-page="product"] .hero-copy,
  html[lang="ar"][data-kolfat-page="product"] .hero-copy{
    width:min(460px,52vw)!important;
    max-width:460px!important;
    margin-left:clamp(28px,4vw,55px)!important;
    margin-right:auto!important;
    direction:rtl!important;
    text-align:right!important;
  }
  html[lang="fa"][data-kolfat-page="product"] .hero-bg,
  html[lang="ar"][data-kolfat-page="product"] .hero-bg{
    background-position:80% center!important;
  }
  html[lang="fa"][data-kolfat-page="product"] .hero-bg:before,
  html[lang="ar"][data-kolfat-page="product"] .hero-bg:before{
    width:70%!important;
  }
}

@media(max-width:640px){
  .store-btn{width:min(350px,100%)!important;min-height:64px!important;padding:9px 16px!important}
  html[data-kolfat-page="product"] .hero-inner{padding:104px 16px 70px!important}
  html[data-kolfat-page="product"] .hero-copy{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  html[dir="rtl"][data-kolfat-page="product"] .hero-copy{margin:0!important}
  html[lang="fa"][data-kolfat-page="product"] .hero-copy,
  html[lang="ar"][data-kolfat-page="product"] .hero-copy{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    direction:rtl!important;
    text-align:right!important;
  }
  html[lang="fa"][data-kolfat-page="product"] .hero-bg,
  html[lang="ar"][data-kolfat-page="product"] .hero-bg{
    background-position:72% center!important;
  }
  html[lang="fa"][data-kolfat-page="product"] .hero-bg:before,
  html[lang="ar"][data-kolfat-page="product"] .hero-bg:before{
    width:100%!important;
    background:linear-gradient(90deg,rgba(5,5,5,.98),rgba(5,5,5,.86) 68%,rgba(5,5,5,.48))!important;
  }
}
/* END KOLFAT STORE / HERO FIX V5 */

/* KOLFAT SOCIAL TOP NAV START */
.top-nav .social-top{position:static!important;height:44px!important;padding:0 16px!important;border:1px solid rgba(255,255,255,.48)!important;background:rgba(6,6,6,.68)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;color:#fff!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;text-transform:uppercase!important;letter-spacing:.10em!important;font-size:.70rem!important;font-weight:700!important;white-space:nowrap!important;transition:.2s!important}
.top-nav .social-top:hover{background:#fff!important;color:#050505!important;border-color:#fff!important}
.top-nav .x-top{min-width:44px!important;padding-left:13px!important;padding-right:13px!important}
.social-short{display:none}
@media(max-width:640px){.top-nav .social-top{height:38px!important;padding:0 10px!important;font-size:.58rem!important}.top-nav .x-top{min-width:38px!important;padding-left:9px!important;padding-right:9px!important}}
@media(max-width:420px){.top-nav{gap:4px!important}.top-nav .support-top,.top-nav .github-top,.top-nav .social-top{padding-left:8px!important;padding-right:8px!important;font-size:.55rem!important}.top-nav .x-top{min-width:34px!important;padding-left:7px!important;padding-right:7px!important}.top-nav .lang-menu summary{min-width:52px!important;padding-left:7px!important;padding-right:7px!important}.youtube-top .social-long,.tiktok-top .social-long{display:none}.youtube-top .social-short,.tiktok-top .social-short{display:inline}}
/* KOLFAT SOCIAL TOP NAV END */


/* KOLFAT SEO INTERNAL LINKS */
.primary-seo-links,.seo-footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.primary-seo-links a,.seo-footer-links a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border:1px solid rgba(255,255,255,.28);background:rgba(5,5,5,.60);color:#f5f5f2!important;text-decoration:none!important;text-transform:uppercase;letter-spacing:.08em;font-size:.58rem;font-weight:700;white-space:nowrap}
.primary-seo-links a:hover,.seo-footer-links a:hover{background:#fff;color:#050505!important;border-color:#fff}
.hero-foot .primary-seo-links{margin-left:auto;letter-spacing:normal}
.seo-footer-links{margin-left:auto}
@media(max-width:820px){.hero-foot{gap:12px}.primary-seo-links{gap:5px}.primary-seo-links a{min-height:30px;padding:0 7px;font-size:.52rem}.seo-footer-links{margin-top:12px;margin-left:0}}
@media(max-width:640px){.hero-foot{align-items:flex-end}.hero-foot>span{max-width:40%}.primary-seo-links{justify-content:flex-end;max-width:58%}.primary-seo-links a{min-height:28px;padding:0 6px;font-size:.48rem}}


/* KOLFAT MOBILE HEADER COLLISION FIX */
@media(max-width:640px){
  .site-logo{
    top:14px!important;
    left:16px!important;
    z-index:100001!important;
  }
  .site-logo img{
    width:132px!important;
    max-height:34px!important;
  }
  .top-nav{
    top:60px!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
    justify-content:flex-start!important;
    gap:5px!important;
    flex-wrap:nowrap!important;
  }
  html[data-kolfat-page="home"] .hero-copy{
    top:124px!important;
  }
  html[data-kolfat-page="product"] .hero-inner{
    padding-top:145px!important;
  }
}
@media(max-width:420px){
  .top-nav{
    top:58px!important;
    left:10px!important;
    right:10px!important;
    gap:4px!important;
  }
  .top-nav .support-top,
  .top-nav .github-top,
  .top-nav .social-top{
    height:36px!important;
    padding-left:7px!important;
    padding-right:7px!important;
    font-size:.52rem!important;
    letter-spacing:.06em!important;
  }
  .top-nav .x-top{
    min-width:32px!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
  .top-nav .lang-menu summary{
    height:36px!important;
    min-width:46px!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
  html[data-kolfat-page="home"] .hero-copy{
    top:118px!important;
  }
  html[data-kolfat-page="product"] .hero-inner{
    padding-top:138px!important;
  }
}
/* END KOLFAT MOBILE HEADER COLLISION FIX */


/* KOLFAT DESKTOP CONTACT / SEO NAV COLLISION FIX */
@media(min-width:821px){
  html[data-kolfat-page="home"] .contact-kolfat{
    bottom:78px!important;
  }
}
/* END KOLFAT DESKTOP CONTACT / SEO NAV COLLISION FIX */
