/* NIMA CATALOG FINAL OVERRIDES - loaded AFTER homepage CSS */
.public-site-body{
  --nima-bg:#071a2a;--nima-bg2:#0a2638;--nima-card:#102f43;--nima-card2:#0c2638;
  --nima-line:rgba(53,214,192,.20);--nima-cyan:#35d6c0;--nima-blue:#3d8cff;
  --nima-text:#eaf8f7;--nima-muted:#8eabb8;
  background:radial-gradient(circle at 8% 4%,rgba(53,214,192,.14),transparent 26%),radial-gradient(circle at 92% 16%,rgba(61,140,255,.15),transparent 30%),linear-gradient(180deg,var(--nima-bg),var(--nima-bg2) 52%,#061725)!important;
  color:var(--nima-text)!important;
}
.public-site-body::before{opacity:.12!important;background-image:linear-gradient(rgba(53,214,192,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(53,214,192,.08) 1px,transparent 1px)!important;background-size:48px 48px!important}
.public-site-body main.home-page,.public-site-body main.container:not(.home-page){background:transparent!important;box-shadow:none!important}
.public-site-body .home-page .home-hero{background:radial-gradient(circle at 76% 45%,rgba(53,214,192,.18),transparent 25%),radial-gradient(circle at 100% 0%,rgba(61,140,255,.18),transparent 34%),linear-gradient(135deg,#123b52,#0b2a40 58%,#0a2235)!important;border-color:var(--nima-line)!important}
.public-site-body .home-page .home-hero h1,.public-site-body .home-page .home-section-heading h2{color:#effafa!important}
.public-site-body .home-page .home-hero p,.public-site-body .home-page .home-product-body>p{color:var(--nima-muted)!important}
.public-site-body .home-page .home-hero h1 strong,.public-site-body .home-page .home-eyebrow,.public-site-body .home-page .home-section-kicker,.public-site-body .home-page .home-section-heading a{color:#5fe5d5!important}
.public-site-body .home-page .home-btn-primary,.public-site-body .home-page .home-contact-btn{background:linear-gradient(135deg,#087f91,#20cdb9 58%,#3d8cff)!important;color:#fff!important}
.public-site-body .home-page .home-btn-light,.public-site-body .home-page .home-view-btn{background:rgba(53,214,192,.06)!important;color:#d9efef!important;border-color:rgba(53,214,192,.20)!important}
.public-site-body .home-page .home-device-card,.public-site-body .home-page .home-floating-card,.public-site-body .home-page .home-trust-item,.public-site-body .home-page .home-category-card,.public-site-body .home-page .home-product-card{background:linear-gradient(145deg,#163653,#102a43)!important;border-color:rgba(116,201,214,.20)!important;color:#eaf8f7!important}
.public-site-body .home-page .home-product-image{background:radial-gradient(circle at 50% 40%,rgba(25,195,177,.09),transparent 48%),#0d2941!important;border-bottom-color:rgba(116,201,214,.14)!important}
.public-site-body .home-page .home-product-title,.public-site-body .home-page .home-trust-item strong,.public-site-body .home-page .home-category-card>span:not(.home-category-icon){color:#e8f6f7!important}
.public-site-body .home-page .home-category-icon,.public-site-body .home-page .home-device-icon,.public-site-body .home-page .home-trust-icon{color:#6ce2d8!important}
.public-site-body .home-page .home-cta{background:linear-gradient(135deg,#123653,#12334f 55%,#0c2942)!important;border-color:rgba(116,201,214,.20)!important}
.public-site-body .special-offer-section,.public-site-body .special-offer-card{background:linear-gradient(145deg,#102f43,#0c2638)!important;border-color:var(--nima-line)!important;color:#eaf8f7!important}
.public-site-body .special-offer-image{background:#081f30!important}
.public-site-body .site-footer{background:linear-gradient(145deg,#061827,#0a2639 60%,#071d2e)!important;color:#9bb8c5!important;border-top-color:rgba(53,214,192,.18)!important}
.public-site-body .site-header{background:linear-gradient(180deg,rgba(7,26,42,.98),rgba(10,38,56,.96))!important;border-bottom-color:rgba(53,214,192,.18)!important}
.public-site-body .header-search{background:rgba(12,38,56,.94)!important;border-color:rgba(53,214,192,.20)!important}
.public-site-body .header-search input{color:#eaf8f7!important;background:transparent!important}
.public-site-body .header-search button{background:linear-gradient(135deg,#087f91,#20cdb9)!important;color:#fff!important}
.public-site-body .main-nav a{color:#b9d2d8!important}.public-site-body .main-nav a:hover{background:rgba(53,214,192,.08)!important;color:#fff!important}
.public-site-body .mobile-bottom-nav{background:rgba(8,34,56,.97)!important;border-color:rgba(116,201,214,.18)!important}.public-site-body .mobile-bottom-item{color:#8ca8b5!important}.public-site-body .mobile-bottom-active{color:#70e1d7!important}
@media(max-width:768px){
  .public-site-body{background:linear-gradient(180deg,#071a2a,#0a2638 55%,#061725)!important}
  .public-site-body .site-header{background:linear-gradient(180deg,#071a2a,#0a2638)!important}
  .public-site-body .home-page .home-product-card,.public-site-body .home-page .home-category-card,.public-site-body .home-page .home-trust-item,.public-site-body .special-offer-card{background:linear-gradient(145deg,#163653,#102a43)!important}
}

/* NIMA PRODUCTS MOBILE FILTER HARDENING */
@media (max-width: 720px){
  .public-site-body .catalog-filters{
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    bottom:calc(91px + env(safe-area-inset-bottom)) !important;
    left:auto !important;
    width:min(320px,88vw) !important;
    max-width:88vw !important;
    height:auto !important;
    margin:0 !important;
    z-index:30000 !important;
    transform:translate3d(110%,0,0) !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    transition:transform .25s ease,opacity .2s ease,visibility 0s linear .25s !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
  }
  .public-site-body .catalog-filters.open{
    transform:translate3d(0,0,0) !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    transition:transform .25s ease,opacity .2s ease,visibility 0s !important;
  }
}


/* =========================================================
   NIMA MOBILE BOTTOM NAV — ACTIVE / TAP ANIMATION
   ========================================================= */
@media (max-width:768px){
  .public-site-body .mobile-bottom-nav{
    overflow:hidden;
    isolation:isolate;
  }

  .public-site-body .mobile-bottom-item{
    position:relative;
    z-index:1;
    overflow:hidden;
    gap:4px!important;
    font-weight:600!important;
    transition:color .22s ease, transform .22s cubic-bezier(.2,.8,.2,1),
               font-weight .15s ease!important;
  }

  /* Animated selected background */
  .public-site-body .mobile-bottom-item::before{
    content:"";
    position:absolute;
    inset:4px 5px;
    border-radius:17px;
    background:linear-gradient(135deg,rgba(36,214,202,.20),rgba(64,139,255,.20));
    border:1px solid rgba(112,225,215,.16);
    box-shadow:0 5px 18px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06);
    opacity:0;
    transform:scale(.72);
    transition:opacity .22s ease, transform .28s cubic-bezier(.16,1,.3,1);
    z-index:-1;
  }

  .public-site-body .mobile-bottom-item::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:3px;
    width:0;
    height:3px;
    border-radius:999px;
    background:linear-gradient(90deg,#70e1d7,#408bff);
    transform:translateX(-50%);
    transition:width .28s cubic-bezier(.16,1,.3,1), opacity .2s ease;
    opacity:0;
  }

  .public-site-body .mobile-bottom-item .mobile-bottom-icon{
    transition:transform .28s cubic-bezier(.16,1,.3,1), filter .22s ease;
  }

  .public-site-body .mobile-bottom-item > span:last-child{
    transition:transform .22s ease, font-weight .15s ease, letter-spacing .2s ease;
  }

  .public-site-body .mobile-bottom-item.mobile-bottom-active,
  .public-site-body .mobile-bottom-item.mobile-bottom-selected{
    color:#70e1d7!important;
    font-weight:900!important;
    transform:translateY(-2px);
  }

  .public-site-body .mobile-bottom-item.mobile-bottom-active::before,
  .public-site-body .mobile-bottom-item.mobile-bottom-selected::before{
    opacity:1;
    transform:scale(1);
  }

  .public-site-body .mobile-bottom-item.mobile-bottom-active::after,
  .public-site-body .mobile-bottom-item.mobile-bottom-selected::after{
    width:30px;
    opacity:1;
  }

  .public-site-body .mobile-bottom-item.mobile-bottom-active .mobile-bottom-icon,
  .public-site-body .mobile-bottom-item.mobile-bottom-selected .mobile-bottom-icon{
    transform:translateY(-3px) scale(1.12);
    filter:drop-shadow(0 0 7px rgba(112,225,215,.34));
  }

  .public-site-body .mobile-bottom-item.mobile-bottom-active > span:last-child,
  .public-site-body .mobile-bottom-item.mobile-bottom-selected > span:last-child{
    transform:scale(1.05);
    letter-spacing:.1px;
  }

  /* A quick pop when the user taps an item. */
  .public-site-body .mobile-bottom-item.mobile-bottom-selected .mobile-bottom-icon{
    animation:mobileNavPop .38s cubic-bezier(.2,.9,.2,1);
  }

  @keyframes mobileNavPop{
    0%{transform:translateY(-3px) scale(.86)}
    55%{transform:translateY(-5px) scale(1.18)}
    100%{transform:translateY(-3px) scale(1.12)}
  }

  .public-site-body .mobile-bottom-item:active{
    transform:translateY(-1px) scale(.96)!important;
  }
}

/* MOBILE BOTTOM NAV — 3 ITEMS (search removed) */
@media (max-width:768px){
  .public-site-body .mobile-bottom-nav{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}


/* MOBILE BOTTOM NAV REMOVED — catalog mobile uses the header/menu instead. */
@media(max-width:768px){
  .public-site-body .mobile-bottom-nav{display:none!important}
  .public-site-body{padding-bottom:0!important}
  .public-site-body .support-float{bottom:calc(14px + env(safe-area-inset-bottom))!important}
}

/* MOBILE HAMBURGER FIX — keep the drawer above its backdrop.
   The header creates a stacking context, so the drawer must be inside
   a higher mobile header layer than the overlay. */
@media (max-width:700px){
  .public-site-body .site-header{z-index:1002 !important;}
  .public-site-body .main-nav{z-index:1003 !important;}
  .public-site-body .mobile-menu-overlay{z-index:1001 !important;}
}

/* =========================================================
   NIMA MOBILE HAMBURGER MENU — PREMIUM CATALOG DRAWER
   ========================================================= */
@media (max-width:700px){
  .public-site-body .main-nav{
    width:min(330px,86vw)!important;
    max-width:330px!important;
    right:-360px!important;
    padding:26px 18px 24px!important;
    background:
      radial-gradient(circle at 85% 8%,rgba(53,214,192,.16),transparent 30%),
      radial-gradient(circle at 10% 92%,rgba(61,140,255,.14),transparent 32%),
      linear-gradient(180deg,#0b293d 0%,#081e30 58%,#071a2a 100%)!important;
    border-left:1px solid rgba(112,225,215,.18)!important;
    box-shadow:-22px 0 60px rgba(0,0,0,.42),inset 1px 0 0 rgba(255,255,255,.035)!important;
    overflow-x:hidden!important;
  }
  .public-site-body .main-nav.is-open{right:0!important}

  /* Decorative glow at the top of the drawer */
  .public-site-body .main-nav::before{
    content:"";
    position:absolute;
    top:0;left:18px;right:18px;height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,transparent,#35d6c0,#3d8cff,transparent);
    box-shadow:0 0 16px rgba(53,214,192,.32);
  }
  .public-site-body .main-nav::after{
    content:"کاتالوگ نیما ترانسفورمر";
    display:block;
    color:#eaf8f7;
    font-size:20px;
    font-weight:900;
    letter-spacing:-.3px;
    margin:12px 4px 5px;
    text-shadow:0 4px 18px rgba(53,214,192,.12);
  }

  .public-site-body .main-nav ul{
    margin:20px 0 0!important;
    padding:0!important;
    gap:10px!important;
  }
  .public-site-body .main-nav li{
    opacity:0;
    transform:translateX(18px);
  }
  .public-site-body .main-nav.is-open li{
    opacity:1;
    transform:translateX(0);
    transition:opacity .32s ease,transform .42s cubic-bezier(.16,1,.3,1);
  }
  .public-site-body .main-nav.is-open li:nth-child(1){transition-delay:.04s}
  .public-site-body .main-nav.is-open li:nth-child(2){transition-delay:.09s}
  .public-site-body .main-nav.is-open li:nth-child(3){transition-delay:.14s}
  .public-site-body .main-nav.is-open li:nth-child(4){transition-delay:.19s}

  .public-site-body .main-nav a{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:58px!important;
    padding:10px 15px!important;
    border:1px solid rgba(112,225,215,.12)!important;
    border-radius:17px!important;
    background:linear-gradient(135deg,rgba(22,54,78,.92),rgba(12,39,58,.92))!important;
    color:#c8dfe3!important;
    box-shadow:0 7px 20px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.035)!important;
    font-size:14px!important;
    font-weight:700!important;
    overflow:hidden!important;
    transition:transform .22s ease,border-color .22s ease,background .22s ease,color .22s ease,box-shadow .22s ease!important;
  }
  .public-site-body .main-nav a::before{
    content:"";
    position:absolute;
    top:0;bottom:0;right:0;
    width:3px;
    border-radius:0 17px 17px 0;
    background:linear-gradient(180deg,#35d6c0,#3d8cff);
    opacity:.25;
    transform:scaleY(.35);
    transition:transform .25s ease,opacity .25s ease;
  }
  .public-site-body .main-nav a::after{
    position:absolute;
    left:15px;
    width:8px;height:8px;
    border-radius:50%;
    background:#35d6c0;
    box-shadow:0 0 12px rgba(53,214,192,.45);
    opacity:.55;
    content:"";
  }
  .public-site-body .main-nav a:hover,
  .public-site-body .main-nav a:active{
    transform:translateX(-3px)!important;
    color:#f4ffff!important;
    border-color:rgba(53,214,192,.32)!important;
    background:linear-gradient(135deg,rgba(22,76,91,.98),rgba(15,52,75,.98))!important;
    box-shadow:0 10px 26px rgba(0,0,0,.22),0 0 22px rgba(53,214,192,.07)!important;
  }
  .public-site-body .main-nav a:hover::before,
  .public-site-body .main-nav a:active::before{
    opacity:1;transform:scaleY(1);
  }

  /* Small visual icons without changing the existing HTML */
  .public-site-body .main-nav li:nth-child(1) a::after{content:"⌂";font-size:17px;width:auto;height:auto;background:none;box-shadow:none;left:16px;top:50%;transform:translateY(-50%);opacity:.9}
  .public-site-body .main-nav li:nth-child(2) a::after{content:"▦";font-size:16px;width:auto;height:auto;background:none;box-shadow:none;left:17px;top:50%;transform:translateY(-50%);opacity:.9}
  .public-site-body .main-nav li:nth-child(3) a::after{content:"⚙";font-size:14px;width:auto;height:auto;background:none;box-shadow:none;left:16px;top:50%;transform:translateY(-50%);opacity:.9}
  .public-site-body .main-nav li:nth-child(4) a::after{content:"↪";font-size:16px;width:auto;height:auto;background:none;box-shadow:none;left:17px;top:50%;transform:translateY(-50%);opacity:.9}

  .public-site-body .main-nav .admin-nav-link{
    color:#7ce7da!important;
    background:linear-gradient(135deg,rgba(19,88,91,.72),rgba(14,52,72,.92))!important;
    border-color:rgba(53,214,192,.28)!important;
  }
  .public-site-body .main-nav .admin-nav-link i{
    color:#70e1d7!important;
    margin-left:8px;
  }

  /* Dim the page more elegantly behind the drawer */
  .public-site-body .mobile-menu-overlay{
    background:rgba(2,12,20,.70)!important;
    backdrop-filter:blur(7px)!important;
    -webkit-backdrop-filter:blur(7px)!important;
  }

  /* Hamburger button becomes a polished close control while open */
  .public-site-body .menu-toggle{
    position:relative!important;
    z-index:1005!important;
    width:48px!important;height:48px!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,rgba(27,77,98,.95),rgba(10,38,57,.98))!important;
    border-color:rgba(112,225,215,.28)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.06)!important;
  }
  .public-site-body .menu-toggle span{
    width:22px!important;height:2.5px!important;
    background:#eaf8f7!important;
    transition:transform .28s cubic-bezier(.16,1,.3,1),opacity .2s ease!important;
  }
  .public-site-body .menu-toggle[aria-expanded="true"]{
    background:linear-gradient(145deg,#164c62,#0d3047)!important;
    border-color:rgba(53,214,192,.42)!important;
    box-shadow:0 0 26px rgba(53,214,192,.12),0 8px 24px rgba(0,0,0,.25)!important;
  }
}


/* =========================================================
   NIMA HAMBURGER MENU — SMOOTH MOBILE PERFORMANCE + CONTACT
   ========================================================= */
@media (max-width:700px){
  .public-site-body .main-nav{
    right:0!important;
    transform:translate3d(100%,0,0)!important;
    will-change:transform;
    transition:transform .20s cubic-bezier(.22,.8,.24,1)!important;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
    contain:layout paint;
  }
  .public-site-body .main-nav.is-open{
    right:0!important;
    transform:translate3d(0,0,0)!important;
  }
  .public-site-body .main-nav li{
    opacity:0;
    transform:translate3d(12px,0,0);
    will-change:transform,opacity;
  }
  .public-site-body .main-nav.is-open li{
    opacity:1;
    transform:translate3d(0,0,0);
    transition:opacity .18s ease,transform .22s cubic-bezier(.22,.8,.24,1)!important;
  }
  .public-site-body .main-nav.is-open li:nth-child(1){transition-delay:.02s!important}
  .public-site-body .main-nav.is-open li:nth-child(2){transition-delay:.04s!important}
  .public-site-body .main-nav.is-open li:nth-child(3){transition-delay:.06s!important}
  .public-site-body .main-nav.is-open li:nth-child(4){transition-delay:.08s!important}
  .public-site-body .main-nav.is-open li:nth-child(5){transition-delay:.10s!important}

  /* Keep the overlay light-weight; blur was causing frame drops on some phones. */
  .public-site-body .mobile-menu-overlay{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transition:opacity .16s ease!important;
  }

  /* Contact link */
  .public-site-body .main-nav li:nth-child(3) a{
    border-color:rgba(53,214,192,.24)!important;
    background:linear-gradient(135deg,rgba(19,78,86,.94),rgba(12,43,62,.96))!important;
    color:#7ce7da!important;
  }
  .public-site-body .main-nav li:nth-child(3) a::after{
    content:"☎";
    font-size:15px;width:auto;height:auto;background:none;box-shadow:none;
    left:16px;top:50%;transform:translateY(-50%);opacity:.95;
  }
}

/* =========================================================
   NIMA CONTACT — خوانایی آیکن‌های کارت‌های تماس
   ========================================================= */
.public-site-body.page-contact-php .contact-info-card .contact-icon {
  color:#0f6073 !important;
  background:linear-gradient(145deg,#e8f7f7,#eef4ff) !important;
  border:1px solid rgba(15,96,115,.10) !important;
  box-shadow:0 5px 14px rgba(15,96,115,.08) !important;
}

.public-site-body.page-contact-php .contact-info-card:nth-child(1) .contact-icon,
.public-site-body.page-contact-php .contact-info-card:nth-child(2) .contact-icon {
  color:#0f6073 !important;
}

.public-site-body.page-contact-php .contact-direct-icon {
  color:#0f6073 !important;
  background:linear-gradient(145deg,#e8f7f7,#eef4ff) !important;
}

/* =========================================================
   NIMA LIGHT PURPLE / BLUE MASTER THEME
   Replaces previous dark/cyan skin without changing markup.
   Lightweight: no backdrop blur, no heavy glow, short hover transitions.
   ========================================================= */
.public-site-body{
  --nima-bg:#f7f5ff;
  --nima-bg2:#ffffff;
  --nima-card:#ffffff;
  --nima-card2:#fbfaff;
  --nima-line:#e7e2ff;
  --nima-purple:#1f5fa8;
  --nima-purple-2:#1f5fa8;
  --nima-blue:#13315c;
  --nima-text:#20243a;
  --nima-muted:#68708a;
  background:linear-gradient(180deg,#f7f5ff 0%,#ffffff 48%,#f7f9ff 100%) !important;
  color:var(--nima-text) !important;
}
.public-site-body::before{opacity:.035!important;background-image:radial-gradient(circle at 15% 10%,#1f5fa8 0 1px,transparent 1px),radial-gradient(circle at 85% 25%,#13315c 0 1px,transparent 1px)!important;background-size:34px 34px,46px 46px!important}
.public-site-body main.home-page,.public-site-body main.container:not(.home-page){background:transparent!important;box-shadow:none!important}
.public-site-body main.container:not(.home-page){width:min(1380px,calc(100% - 32px))!important}

/* Header */
.public-site-body .site-header{background:rgba(255,255,255,.96)!important;border-bottom:1px solid #dde5ef!important;box-shadow:0 5px 20px rgba(11,37,69,.06)!important}
.public-site-body .header-search{background:#f3f6fa!important;border:1px solid #dde5ef!important;box-shadow:none!important}
.public-site-body .header-search input{color:#252942!important}
.public-site-body .header-search input::placeholder{color:#9a9eb0!important}
.public-site-body .header-search button{background:linear-gradient(135deg,#1f5fa8,#13315c)!important;box-shadow:none!important}
.public-site-body .main-nav a{color:#60677e!important}
.public-site-body .main-nav a:hover{background:#e8f0fa!important;border-color:#e2dcff!important;color:#1f5fa8!important;box-shadow:none!important}
.public-site-body .main-nav .admin-nav-link{color:#5b4ccf!important;background:#e8f0fa!important;border-color:#bcd2ec!important}

/* Catalog */
.public-site-body .catalog-pro{color:#20243a!important}
.public-site-body .catalog-head h1,.public-site-body .products-page-head h1,.public-site-body .product-detail-info h1{color:#252943!important;text-shadow:none!important}
.public-site-body .catalog-head p,.public-site-body .products-page-head p,.public-site-body .catalog-breadcrumb,.public-site-body .products-breadcrumb,.public-site-body .product-detail-breadcrumb{color:#7b8195!important}
.public-site-body .catalog-breadcrumb a,.public-site-body .products-breadcrumb a,.public-site-body .product-detail-breadcrumb a{color:#6759d9!important}
.public-site-body .catalog-head-count,.public-site-body .results-toolbar,.public-site-body .catalog-filters,.public-site-body .products-sidebar-card,.public-site-body .product-detail-image-card,.public-site-body .product-detail-info,.public-site-body .related-section{background:#fff!important;border-color:#dde5ef!important;box-shadow:0 10px 28px rgba(11,37,69,.07)!important;color:#20243a!important}
.public-site-body .catalog-search-pro{background:linear-gradient(135deg,#f1edff,#f4f8ff)!important;border:1px solid #e3dcff!important;box-shadow:0 10px 28px rgba(93,77,180,.08)!important}
.public-site-body .catalog-search-pro::before{display:none!important}
.public-site-body .search-pro-input{background:#fff!important;border:1px solid #e2def0!important;box-shadow:none!important}
.public-site-body .search-pro-input input{color:#272b42!important}
.public-site-body .search-pro-input input::placeholder{color:#a0a4b3!important}
.public-site-body .search-pro-input button,.public-site-body .apply-filters{background:linear-gradient(135deg,#1f5fa8,#13315c)!important;box-shadow:0 6px 16px rgba(31,95,168,.16)!important}
.public-site-body .filter-group{border-color:#eeeaf7!important}
.public-site-body .filter-group h3,.public-site-body .filter-head h2{color:#30354b!important}
.public-site-body .filter-link{color:#68708a!important}
.public-site-body .filter-link:hover,.public-site-body .filter-link.selected{background:#e8f0fa!important;color:#5d4fd2!important;box-shadow:inset -2px 0 0 #1f5fa8!important}
.public-site-body .filter-link b{background:#e8f0fa!important;color:#6659c8!important}
.public-site-body .results-toolbar{color:#69718a!important}
.public-site-body .results-toolbar select,.public-site-body .filter-group select{background:#fff!important;color:#42475c!important;border-color:#e3dfed!important}

/* Product cards */
.public-site-body .catalog-card,.public-site-body .related-card{position:relative;background:#fff!important;border:1px solid #dde5ef!important;box-shadow:0 9px 26px rgba(11,37,69,.07)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;animation:none!important}
.public-site-body .catalog-card::before,.public-site-body .related-card::before{display:none!important}
.public-site-body .catalog-card:hover,.public-site-body .related-card:hover{transform:translateY(-3px)!important;border-color:#d9d0ff!important;box-shadow:0 15px 32px rgba(79,65,160,.12)!important}
.public-site-body .catalog-card-media{background:#f3f6fa!important;border-bottom:1px solid #e4eaf2!important}
.public-site-body .catalog-card-media img{filter:none!important;transition:transform .18s ease!important}
.public-site-body .catalog-card:hover .catalog-card-media img{transform:scale(1.035)!important;filter:none!important}
.public-site-body .card-category{color:#1f5fa8!important}
.public-site-body .catalog-card h2 a{color:#252943!important}
.public-site-body .catalog-card h2 a:hover{color:#5e50d2!important}
.public-site-body .card-code{color:#858ba0!important}
.public-site-body .catalog-card-actions a{box-shadow:none!important}
.public-site-body .catalog-card-actions .detail-btn,.public-site-body .home-product-actions .home-view-btn{background:#f3f0ff!important;border-color:#e1dbfa!important;color:#5d54a5!important}
.public-site-body .catalog-card-actions .catalog-contact-btn,.public-site-body .home-product-actions .home-contact-btn{background:linear-gradient(135deg,#1f5fa8,#13315c)!important;color:#fff!important;box-shadow:0 7px 17px rgba(31,95,168,.16)!important}
.public-site-body .catalog-card-actions a:hover,.public-site-body .home-product-actions a:hover{transform:translateY(-1px)!important;border-color:#cfc6fa!important;color:#fff!important}
.public-site-body .catalog-card-actions a::after,.public-site-body .home-product-actions a::after{display:none!important}

/* Product detail legacy skin override */
.public-site-body .pdp-main,.public-site-body .pdp-tabs{background:#fff!important;border-color:#dde5ef!important;box-shadow:0 10px 30px rgba(11,37,69,.07)!important}
.public-site-body .pdp-main-image{background:#f3f6fa!important}
.public-site-body .pdp-info{color:#20243a!important}
.public-site-body .pdp-info h1{color:#252943!important;text-shadow:none!important}
.public-site-body .pdp-breadcrumb{color:#858ba0!important}.public-site-body .pdp-breadcrumb a{color:#1f5fa8!important}.public-site-body .pdp-breadcrumb strong{color:#41465d!important}
.public-site-body .cat-tag{background:#e8f0fa!important;color:#1f5fa8!important;border:1px solid #bcd2ec!important}
.public-site-body .pdp-code,.public-site-body .pdp-brand{color:#858ba0!important}.public-site-body .pdp-code strong,.public-site-body .pdp-brand strong{color:#41465d!important}
.public-site-body .pdp-short h2{color:#30354b!important}.public-site-body .pdp-short p{color:#69718a!important}
.public-site-body .pdp-tab-buttons{border-bottom-color:#e4eaf2!important}.public-site-body .pdp-tab-buttons button{color:#777e93!important}
.public-site-body .pdp-tab-buttons button:hover{color:#1f5fa8!important;background:#f7f4ff!important}
.public-site-body .pdp-tab-buttons button.active{background:#e8f0fa!important;color:#1f5fa8!important}
.public-site-body .pdp-tab{color:#69718a!important}.public-site-body .pdp-tab h2{color:#30354b!important}.public-site-body .spec-text{color:#596176!important}
.public-site-body .empty-spec{background:#f3f6fa!important;color:#858ba0!important;border-color:#e4eaf2!important}
.public-site-body .pdp-catalog-contact{background:linear-gradient(135deg,#e8f0fa,#f3f7ff)!important;border-color:#dde5ef!important}
.public-site-body .pdp-catalog-contact strong{color:#30354b!important}.public-site-body .pdp-catalog-contact span{color:#737b90!important}
.public-site-body .pdp-catalog-contact a,.public-site-body .download-sheet{background:linear-gradient(135deg,#1f5fa8,#13315c)!important;box-shadow:0 7px 17px rgba(31,95,168,.16)!important}
.public-site-body .pdp-thumb{border-color:#dde5ef!important;background:#fff!important}.public-site-body .pdp-thumb.active{border-color:#1f5fa8!important;box-shadow:0 4px 12px rgba(31,95,168,.12)!important}
.public-site-body .gallery-nav{background:rgba(255,255,255,.94)!important;color:#13315c!important;border-color:#dde5ef!important;box-shadow:0 5px 14px rgba(11,37,69,.12)!important}
.public-site-body .gallery-nav:hover{background:linear-gradient(135deg,#1f5fa8,#13315c)!important;color:#fff!important}
.public-site-body .related-section{background:#fff!important}.public-site-body .related-head h2{color:#30354b!important}.public-site-body .related-head span{color:#1f5fa8!important}.public-site-body .related-card small{color:#858ba0!important}.public-site-body .related-card h3{color:#30354b!important}.public-site-body .related-cta{color:#1f5fa8!important}

/* Home */
.public-site-body .home-page .home-hero{background:linear-gradient(135deg,#f0ecff 0%,#e8f0fa 52%,#eef6ff 100%)!important;border-color:#e2dcfb!important;box-shadow:0 12px 32px rgba(75,61,150,.08)!important}
.public-site-body .home-page .home-hero h1{color:#252943!important}.public-site-body .home-page .home-hero p{color:#69718a!important}.public-site-body .home-page .home-hero h1 strong,.public-site-body .home-page .home-eyebrow,.public-site-body .home-page .home-section-kicker{color:#6657d8!important;text-shadow:none!important}
.public-site-body .home-page .home-btn-primary,.public-site-body .home-page .home-contact-btn{background:linear-gradient(135deg,#1f5fa8,#13315c)!important;box-shadow:0 8px 18px rgba(31,95,168,.16)!important}
.public-site-body .home-page .home-btn-light,.public-site-body .home-page .home-view-btn{background:#fff!important;border-color:#e3def2!important;color:#5d54a5!important}
.public-site-body .home-page .home-device-card,.public-site-body .home-page .home-floating-card,.public-site-body .home-page .home-trust-item,.public-site-body .home-page .home-category-card,.public-site-body .home-page .home-product-card{background:#fff!important;border-color:#dde5ef!important;color:#30354b!important;box-shadow:0 9px 26px rgba(11,37,69,.07)!important}
.public-site-body .home-page .home-category-card:hover,.public-site-body .home-page .home-product-card:hover{border-color:#d9d0ff!important;box-shadow:0 15px 32px rgba(79,65,160,.12)!important}
.public-site-body .home-page .home-product-image{background:#f3f6fa!important;border-bottom-color:#e4eaf2!important}
.public-site-body .home-page .home-product-title{color:#30354b!important}.public-site-body .home-page .home-product-title:hover{color:#5e50d2!important}.public-site-body .home-page .home-product-body>p{color:#7c8397!important}
.public-site-body .home-page .home-category-icon,.public-site-body .home-page .home-device-icon,.public-site-body .home-page .home-trust-icon{color:#1f5fa8!important}
.public-site-body .home-page .home-cta{background:linear-gradient(135deg,#f0ecff,#eef6ff)!important;border-color:#e1daf8!important}.public-site-body .home-page .home-cta h2{color:#30354b!important}.public-site-body .home-page .home-cta p{color:#737b90!important}

/* Footer */
.public-site-body .site-footer{background:#fff!important;color:#7a8195!important;border-top:1px solid #dde5ef!important;box-shadow:0 -5px 20px rgba(11,37,69,.04)!important}
.public-site-body .site-footer::before{background:linear-gradient(90deg,transparent,#1f5fa8,#13315c,transparent)!important;box-shadow:none!important}
.public-site-body .footer-column h3,.public-site-body .footer-logo{color:#30354b!important}.public-site-body .footer-column a{color:#727a90!important}.public-site-body .footer-column a:hover{color:#1f5fa8!important}.public-site-body .footer-brand p{color:#7a8195!important}.public-site-body .footer-bottom{border-top-color:#e4eaf2!important;color:#8a90a2!important}

/* Mobile menu: light and cheap */
.public-site-body .mobile-menu-overlay{background:rgba(38,31,76,.18)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.public-site-body .main-nav{background:#fff!important;border-color:#dde5ef!important;box-shadow:0 14px 35px rgba(11,37,69,.12)!important}
.public-site-body .menu-toggle{background:#e8f0fa!important;border-color:#bcd2ec!important;box-shadow:none!important}.public-site-body .menu-toggle span{background:#1f5fa8!important}
.public-site-body .mobile-bottom-nav{background:#fff!important;border-color:#dde5ef!important}.public-site-body .mobile-bottom-item{color:#858ba0!important}.public-site-body .mobile-bottom-active{color:#1f5fa8!important}

/* Performance: keep only small hover transitions; remove staggered page animations and blur/glow. */
.public-site-body .catalog-card,.public-site-body .related-card,.public-site-body .catalog-filters,.public-site-body .results-toolbar,.public-site-body .home-product-card,.public-site-body .home-category-card{animation:none!important;will-change:auto!important}
.public-site-body *,.public-site-body *::before,.public-site-body *::after{scroll-behavior:auto}
@media(prefers-reduced-motion:reduce){.public-site-body *,.public-site-body *::before,.public-site-body *::after{animation:none!important;transition:none!important}}

/* =========================================================
   NIMA HEADER + TEXT READABILITY FIX
   Desktop header was inheriting light background while some
   elements still used the old white text color. Keep the
   existing mobile header/menu untouched.
   ========================================================= */
@media (min-width:769px){
  .public-site-body .site-header{
    padding:20px 20px 18px!important;
    color:#252943!important;
    background:#fff!important;
    border-bottom:1px solid #dde5ef!important;
    box-shadow:0 6px 22px rgba(11,37,69,.07)!important;
  }
  .public-site-body .site-header > .container{
    display:flex!important;
    align-items:center!important;
    gap:16px!important;
    flex-wrap:wrap!important;
  }
  .public-site-body .site-header .logo,
  .public-site-body .site-header h2{
    flex:0 0 auto!important;
    margin:0!important;
    color:#252943!important;
    font-size:24px!important;
    line-height:1.4!important;
    font-weight:900!important;
    white-space:nowrap!important;
  }
  .public-site-body .site-header .header-search{
    flex:1 1 320px!important;
    width:min(420px,100%)!important;
    max-width:420px!important;
    margin:0 auto!important;
  }
  .public-site-body .site-header .welcome{
    flex:0 0 auto!important;
    margin:0!important;
    color:#4d536b!important;
    font-size:12px!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
  .public-site-body .site-header .main-nav{
    flex:0 0 auto!important;
    margin:0!important;
  }
  .public-site-body .site-header .main-nav ul{
    margin:0!important;
    align-items:center!important;
    flex-wrap:wrap!important;
  }
  .public-site-body .site-header .main-nav a{
    color:#4f566d!important;
    background:#f3f6fa!important;
    border:1px solid #e6e1f5!important;
    font-weight:800!important;
  }
  .public-site-body .site-header .main-nav a:hover{
    color:#1f5fa8!important;
    background:#e8f0fa!important;
    border-color:#dcd4fa!important;
  }
  .public-site-body .site-header .header-search input{
    color:#252943!important;
    font-weight:600!important;
  }
}

/* Stronger contrast for the home page text that was nearly
   disappearing against the light-purple cards/background. */
.public-site-body .home-page .home-section-kicker{
  color:#5d4fd2!important;
  font-weight:900!important;
}
.public-site-body .home-page .home-section-heading h2{
  color:#252943!important;
  font-weight:900!important;
}
.public-site-body .home-page .home-section-heading a{
  color:#5648c8!important;
  font-weight:900!important;
}
.public-site-body .home-page .home-category-card > span:not(.home-category-icon){
  color:#30354b!important;
  font-weight:900!important;
}
.public-site-body .home-page .home-category-card small{
  color:#626a80!important;
  font-weight:600!important;
}
.public-site-body .home-page .home-trust-item strong{
  color:#30354b!important;
  font-weight:900!important;
}
.public-site-body .home-page .home-trust-item small{
  color:#626a80!important;
}
.public-site-body .home-page .home-product-title{
  color:#252943!important;
  font-weight:900!important;
}
.public-site-body .home-page .home-product-body > p{
  color:#626a80!important;
}
.public-site-body .home-page .home-device-card span{
  color:#626a80!important;
}
.public-site-body .home-page .home-device-card strong{
  color:#252943!important;
}
.public-site-body .home-page .home-device-card small{
  color:#68708a!important;
}
.public-site-body .home-page .home-floating-card{
  color:#30354b!important;
}
.public-site-body .home-page .home-cta h2{
  color:#30354b!important;
}
.public-site-body .home-page .home-cta p{
  color:#68708a!important;
}

@media (max-width:768px){
  .public-site-body .home-page .home-section-kicker,
  .public-site-body .home-page .home-section-heading h2,
  .public-site-body .home-page .home-section-heading a,
  .public-site-body .home-page .home-category-card > span:not(.home-category-icon),
  .public-site-body .home-page .home-category-card small,
  .public-site-body .home-page .home-trust-item strong,
  .public-site-body .home-page .home-trust-item small,
  .public-site-body .home-page .home-product-title,
  .public-site-body .home-page .home-product-body > p{
    text-shadow:none!important;
  }
}

/* =========================================================
   NIMA HEADER - DESKTOP ALIGNMENT FIX v2
   Keep mobile header untouched. On desktop the header uses
   three clean areas on the first row and a centered nav row.
   ========================================================= */
@media (min-width: 1001px){
  .public-site-body .site-header{
    padding:18px 20px 14px!important;
  }
  .public-site-body .site-header > .container{
    position:relative!important;
    display:block!important;
    width:min(1200px,calc(100% - 40px))!important;
    min-height:112px!important;
  }
  .public-site-body .site-header .logo,
  .public-site-body .site-header h2{
    position:absolute!important;
    top:4px!important;
    right:0!important;
    margin:0!important;
    font-size:24px!important;
    line-height:1.45!important;
    white-space:nowrap!important;
    text-align:right!important;
  }
  .public-site-body .site-header .header-search{
    width:420px!important;
    max-width:420px!important;
    height:44px!important;
    margin:0 auto!important;
    position:relative!important;
    top:0!important;
  }
  .public-site-body .site-header .header-search input{
    height:42px!important;
    font-size:13px!important;
  }
  .public-site-body .site-header .header-search button{
    width:44px!important;
    height:44px!important;
  }
  .public-site-body .site-header .welcome{
    position:absolute!important;
    top:10px!important;
    left:0!important;
    margin:0!important;
    font-size:12px!important;
    white-space:nowrap!important;
    text-align:left!important;
  }
  .public-site-body .site-header .main-nav{
    width:100%!important;
    margin:10px 0 0!important;
    padding:0!important;
    position:static!important;
    transform:none!important;
    background:transparent!important;
    box-shadow:none!important;
    border:0!important;
  }
  .public-site-body .site-header .main-nav ul{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
    flex-wrap:wrap!important;
  }
  .public-site-body .site-header .main-nav a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:38px!important;
    padding:7px 16px!important;
    font-size:13px!important;
    line-height:1.3!important;
    border-radius:10px!important;
    white-space:nowrap!important;
  }
}

@media (min-width: 769px) and (max-width: 1000px){
  .public-site-body .site-header{
    padding:16px 14px 14px!important;
  }
  .public-site-body .site-header > .container{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:10px 14px!important;
  }
  .public-site-body .site-header .logo,
  .public-site-body .site-header h2{ order:1!important; }
  .public-site-body .site-header .header-search{ order:2!important; flex:1 1 360px!important; margin:0!important; }
  .public-site-body .site-header .welcome{ order:3!important; }
  .public-site-body .site-header .main-nav{ order:4!important; flex-basis:100%!important; margin:0!important; }
}
