/* ChigzTech v5.159 — mobile refinement */
.mobile-nav-toggle{display:none}

@media (max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  body{font-size:15px}
  .wrap{width:auto!important;max-width:none!important;margin-left:14px!important;margin-right:14px!important}

  /* Header */
  html body .site-main-nav{
    position:sticky!important;top:0!important;z-index:1000!important;background:#fff!important;
    box-shadow:0 1px 0 rgba(17,44,76,.08)!important;overflow:visible!important
  }
  html body .site-main-nav .header-grid{
    width:100%!important;max-width:none!important;margin:0!important;height:auto!important;min-height:74px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;align-items:center!important;
    column-gap:10px!important;row-gap:0!important;padding:8px 16px!important;box-sizing:border-box!important
  }
  html body .site-main-nav .brand-lockup-image{grid-column:1!important;grid-row:1!important;width:176px!important;max-width:176px!important;margin:0!important}
  html body .site-main-nav .brand-lockup-image img{display:block!important;width:176px!important;max-width:176px!important;height:auto!important}

  html body .mobile-nav-toggle{
    display:inline-flex!important;grid-column:2!important;grid-row:1!important;justify-self:end!important;
    width:44px!important;height:44px!important;border:1px solid #d7e5f2!important;border-radius:12px!important;
    background:#f7fbff!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;
    gap:5px!important;cursor:pointer!important;padding:0!important;box-shadow:none!important
  }
  html body .mobile-nav-toggle span{width:20px!important;height:2px!important;border-radius:4px!important;background:#12243b!important;transition:.2s!important}
  html body .site-main-nav.mobile-open .mobile-nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)!important}
  html body .site-main-nav.mobile-open .mobile-nav-toggle span:nth-child(2){opacity:0!important}
  html body .site-main-nav.mobile-open .mobile-nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)!important}

  html body .site-main-nav .navlinks,
  html body .site-main-nav .site-search-wrap{
    grid-column:1/-1!important;position:static!important;width:100%!important;max-width:none!important;
    min-width:0!important;margin:0!important;transform:none!important
  }
  html body .site-main-nav:not(.mobile-open) .navlinks,
  html body .site-main-nav:not(.mobile-open) .site-search-wrap{display:none!important}

  html body .site-main-nav.mobile-open .navlinks{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;
    padding:11px 0 7px!important;margin-top:8px!important;border-top:1px solid #e7eef6!important;background:#fff!important
  }
  html body .site-main-nav.mobile-open .site-search-wrap{display:block!important;padding:4px 0 10px!important;background:#fff!important}

  html body .site-main-nav .navlinks>a,
  html body .site-main-nav .navlinks .nav-menu-item>a,
  html body .site-main-nav .contact-nav-item>summary{
    display:flex!important;width:100%!important;box-sizing:border-box!important;min-height:46px!important;
    padding:12px 14px!important;margin:0!important;border-radius:11px!important;align-items:center!important;
    justify-content:space-between!important;color:#15263c!important;background:#fff!important;border:1px solid #e5edf6!important;
    font-size:15px!important;font-weight:800!important;line-height:1.2!important;text-decoration:none!important
  }
  html body .site-main-nav .navlinks>a.active,
  html body .site-main-nav .navlinks .nav-menu-item>a.active{
    background:#eaf4ff!important;color:#087cf0!important;border-color:#cde4fb!important
  }
  html body .site-main-nav .nav-menu-item,
  html body .site-main-nav .contact-nav-item{display:block!important;width:100%!important;margin:0!important}
  html body .site-main-nav .rankings-dropdown{display:none!important}

  /* Mobile Contact */
  html body .site-main-nav .contact-social-dropdown{
    position:static!important;display:none!important;width:100%!important;min-width:0!important;margin:6px 0 0!important;
    padding:10px!important;border-radius:14px!important;box-shadow:none!important;border:1px solid #dfeaf6!important;
    opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;background:#fff!important
  }
  html body .site-main-nav .contact-nav-item[open] .contact-social-dropdown{display:block!important}
  html body .site-main-nav .contact-social-dropdown::before{display:none!important}
  html body .site-main-nav .contact-social-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:8px!important
  }
  html body .site-main-nav .contact-social-link{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    min-height:54px!important;
    padding:9px 10px!important;
    border:1px solid #dce8f3!important;
    border-radius:11px!important;
    background:#f8fbff!important;
    color:#12243b!important;
    text-decoration:none!important
  }
  html body .site-main-nav .contact-social-link b{
    display:block!important;
    font-size:13px!important;
    line-height:1.15!important
  }
  html body .site-main-nav .contact-social-link em{
    display:block!important;
    margin-top:3px!important;
    font-size:10px!important;
    line-height:1.15!important;
    color:#708096!important;
    font-style:normal!important
  }
  html body .site-main-nav .contact-social-icon{
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:9px!important
  }
  html body .mobile-contact-socials-v5159{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:8px!important
  }
  html body .mobile-contact-socials-v5159 a{
    display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:54px!important;
    padding:9px 11px!important;border:1px solid #dce8f3!important;border-radius:11px!important;background:#f8fbff!important;
    color:#12243b!important;text-decoration:none!important
  }
  html body .mobile-contact-socials-v5159 b{font-size:13px!important;line-height:1.15!important}
  html body .mobile-contact-socials-v5159 span{font-size:10px!important;color:#708096!important;margin-top:3px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html body .site-main-nav .contact-social-business{margin-top:8px!important}

  html body .site-main-nav .site-search{width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important}
  html body .site-main-nav .site-search input{min-width:0!important;width:100%!important;font-size:16px!important}

  /* Homepage */
  .hero-grid,.home-hero-grid,.deals-hero-grid,.new-hero-grid{grid-template-columns:1fr!important;gap:20px!important}
  .hero h1,.home-hero h1,.new-hero h1{font-size:clamp(40px,11vw,58px)!important;line-height:.98!important}
  .hero-copy,.home-hero-copy,.new-hero-copy{padding-right:0!important}
  .home-category-grid,.category-grid,.latest-youtube-grid,.latest-grid{grid-template-columns:1fr!important}
  .mytech-promo-card{grid-template-columns:1fr!important}

  /* FIX: normal-size home hero CTAs */
  .hero-actions,.new-hero-actions{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;
    align-items:stretch!important;margin-top:18px!important
  }
  .hero-actions .btn,.new-hero-actions .btn,
  .hero-primary,.hero-secondary,
  .hero-actions a,.new-hero-actions a{
    width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:50px!important;
    padding:13px 14px!important;margin:0!important;border-radius:16px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
    font-size:15px!important;line-height:1.15!important;font-weight:800!important;flex:none!important
  }
  .hero-stats,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Leaderboards */
  .ranking-category-nav-v5151{margin-left:0!important;margin-right:0!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:8px!important}
  .ranking-category-link-v5151{flex:0 0 auto!important;white-space:nowrap!important}
  .summary-grid,.leaderboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .podium-grid,.leaderboard-grid,.pc-grid,.smart-home-group-grid-v5152{grid-template-columns:1fr!important}
  .rank-card,.smart-home-rating-card,.pc-card{min-width:0!important;width:100%!important;box-sizing:border-box!important}
  .rank-product,.smart-home-rating-main{min-width:0!important}
  .rank-product h3,.smart-home-rating-main h3{overflow-wrap:anywhere!important}
  .smart-home-group-v5152{width:100%!important;grid-column:1/-1!important}
  .smart-home-group-head-v5152{align-items:flex-start!important;gap:10px!important}
  .smart-home-type-pills{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:6px!important}
  .smart-home-type-pills button{flex:0 0 auto!important}

  /* Product */
  .profile-hero,.product-hero-grid,.product-media-grid,.score-benchmark-grid,.benchmark-grid,.method-grid{grid-template-columns:1fr!important}
  .profile-hero{gap:20px!important}
  .score-seal{justify-self:start!important}
  .essentials-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .product-tabs{overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:none!important}
  .product-tabs::-webkit-scrollbar{display:none}
  table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

  /* Tech Help */
  .mytech-page input,.mytech-page textarea,.mytech-page select{font-size:16px!important}
  .mytech-page .mytech-grid,.mytech-page .support-grid,.mytech-page .fix-grid{grid-template-columns:1fr!important}

  /* Deals */
  .deals-hero{padding:36px 0!important}
  .deals-hero h1{font-size:44px!important}
  .deals-hero-card{padding:18px!important}
  .deals-section{padding:34px 0!important}
  .deals-section-head{display:block!important}
  .deals-section-head>p{margin-top:8px!important}
  .featured-deals-grid,.deals-grid{grid-template-columns:1fr!important}
  .featured-deal-card{grid-template-columns:1fr!important}
  .deal-media-featured{min-height:210px!important}
  .deals-toolbar{align-items:flex-start!important;flex-direction:column!important;gap:0!important;padding:8px 0!important}
  .deal-filters{width:100%!important}
}

@media (max-width:600px){
  .wrap{margin-left:10px!important;margin-right:10px!important}
  html body .site-main-nav .header-grid{padding-left:14px!important;padding-right:14px!important}
  html body .site-main-nav .brand-lockup-image,
  html body .site-main-nav .brand-lockup-image img{width:160px!important;max-width:160px!important}

  .hero-actions,.new-hero-actions{grid-template-columns:1fr!important;gap:9px!important}
  .hero-actions .btn,.new-hero-actions .btn,
  .hero-primary,.hero-secondary,.hero-actions a,.new-hero-actions a{
    min-height:48px!important;padding:12px 14px!important;border-radius:14px!important;font-size:15px!important
  }

  .summary-grid,.leaderboard-summary-grid,.hero-stats,.stats-grid,.essentials-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .summary-item,.hero-stat{padding:14px!important}
  .rank-card,.smart-home-rating-card{padding:14px!important}
  .rank-thumb,.smart-home-rating-image{width:92px!important;min-width:92px!important;height:92px!important}
  .rank-card{grid-template-columns:auto minmax(0,1fr)!important}
  .rank-actions,.smart-home-rating-actions{grid-column:1/-1!important;justify-content:flex-end!important}
  .smart-home-group-head-v5152{display:grid!important;grid-template-columns:auto 1fr auto!important}
  .smart-home-group-title-v5152 h2{font-size:22px!important}
  .deals-hero h1{font-size:40px!important}
  .deal-search{grid-template-columns:auto minmax(0,1fr)!important}
  .deal-search button{grid-column:1/-1!important;width:100%!important;margin-top:4px!important}
  html body .mobile-contact-socials-v5159{grid-template-columns:1fr!important}
}

@media (max-width:520px){
  html body .site-main-nav .contact-social-grid{
    grid-template-columns:1fr!important;
  }
}
