
/* GlowStrong Health APEX v4.1.0
   Mobile + responsive hardening */

html,body{max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%;height:auto}

@media(max-width:1100px){
  .gs-wrap{width:min(100% - 40px,1180px)}
}

@media(max-width:900px){
  /* Header / navigation */
  .gs-header-inner{gap:18px}
  .gs-site-header .gs-nav-list{gap:0}
  .gs-site-header.gs-menu-open .gs-primary-nav{
    max-height:calc(100vh - 110px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .gs-site-header.gs-menu-open .gs-primary-nav a{
    min-height:48px;
    display:flex;
    align-items:center;
  }

  /* Global two-column layouts */
  .gs-two-col,
  .gs-home-difference-grid,
  .gs-home-scan-grid,
  .gs-products-philosophy-grid,
  .gs-policy-layout,
  .gs-contact-direct>.gs-wrap,
  .gs-about-belief>.gs-wrap,
  .gs-mg-public-future>.gs-wrap{
    grid-template-columns:1fr!important;
    gap:34px!important;
  }

  /* Commerce */
  .woocommerce .col2-set,
  .woocommerce-page .col2-set,
  .gs-checkout-content .col2-set{
    display:block!important;
  }
  .woocommerce .col2-set .col-1,
  .woocommerce .col2-set .col-2,
  .woocommerce-page .col2-set .col-1,
  .woocommerce-page .col2-set .col-2{
    float:none!important;
    width:100%!important;
    margin:0 0 20px!important;
  }

  /* Grids collapse before they become cramped */
  .gs-prod-grid,
  .gs-market-grid,
  .gs-learn-grid,
  .gs-science-grid,
  .gs-contact-grid,
  .gs-about-value-grid,
  .gs-featured-product-grid,
  .gs-home-proof-row,
  .gs-system-editorial,
  .gs-library-model-grid,
  .gs-myglowstrong-grid,
  .gs-mg-grid{
    grid-template-columns:1fr 1fr!important;
  }
}

@media(max-width:700px){
  .gs-wrap{width:min(100% - 28px,1180px)}

  /* Typography */
  h1,h2,h3{overflow-wrap:anywhere}
  .gs-kicker{font-size:.7rem}
  .gs-home-hero h1,
  .gs-products-hero h1,
  .gs-market-hero h1,
  .gs-jh-hero h1,
  .gs-sys-hero h1,
  .gs-learn-hero h1,
  .gs-about-hero h1,
  .gs-contact-hero h1,
  .gs-faq-hero h1,
  .gs-policies-hero h1,
  .gs-science-hero h1,
  .gs-404-hero h1{
    font-size:clamp(2.25rem,9vw,3.5rem)!important;
    line-height:1.02!important;
  }

  /* Header */
  .gs-announcement{font-size:.6rem;letter-spacing:.06em}
  .gs-announcement .gs-wrap{justify-content:flex-start;overflow:hidden}
  .gs-brand-logo,.gs-brand-name{max-width:165px}
  .gs-site-start-journey{display:none!important}

  /* Actions */
  .gs-actions{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
  }
  .gs-actions .gs-btn,
  .gs-actions a{
    width:100%;
    text-align:center;
    justify-content:center;
  }

  /* Product / content / account grids */
  .gs-prod-grid,
  .gs-market-grid,
  .gs-learn-grid,
  .gs-science-grid,
  .gs-contact-grid,
  .gs-about-value-grid,
  .gs-featured-product-grid,
  .gs-home-proof-row,
  .gs-system-editorial,
  .gs-library-model-grid,
  .gs-myglowstrong-grid,
  .gs-mg-grid,
  .gs-policy-grid,
  .gs-sys-goal-grid,
  .gs-science-principle-grid,
  .gs-science-quality-grid,
  .gs-about-model-grid,
  .gs-market-boundary-grid,
  .gs-jh-ecosystem-grid{
    grid-template-columns:1fr!important;
  }

  /* Editorial row patterns */
  .gs-systems-editorial-list a,
  .gs-home-journey-rows div,
  .gs-products-system-list a,
  .gs-library-type-list div,
  .gs-about-boundaries div,
  .gs-learn-standard-list div,
  .gs-sys-support-list a{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }

  /* Tables become touch-scrollable */
  .woocommerce table.shop_table,
  .woocommerce-checkout-review-order-table{
    display:block;
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  /* Cart actions */
  .woocommerce-cart-form .actions .coupon{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
    margin-bottom:10px!important;
  }
  .woocommerce-cart-form .actions .coupon input,
  .woocommerce-cart-form .actions .coupon button,
  .woocommerce-cart-form .actions>button{
    width:100%!important;
    min-height:46px!important;
  }

  /* Forms */
  input,select,textarea,button{
    font-size:16px!important; /* prevents iOS zoom */
  }

  /* Footer */
  .gs-footer-columns{grid-template-columns:1fr 1fr!important}
  .gs-footer-bottom{display:block!important}
  .gs-footer-bottom>div{margin-top:14px;flex-wrap:wrap}

  /* 404/search */
  .gs-404-grid,.gs-search-grid{grid-template-columns:1fr!important}

  /* Account */
  .woocommerce-account .woocommerce-MyAccount-navigation{
    margin-bottom:28px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li{
    border-right:1px solid #d8dde3;
  }
}

@media(max-width:480px){
  .gs-wrap{width:min(100% - 22px,1180px)}

  .gs-footer-columns{grid-template-columns:1fr!important}
  .woocommerce-account .woocommerce-MyAccount-navigation ul{grid-template-columns:1fr}

  .gs-home-hero,
  .gs-products-hero,
  .gs-market-hero,
  .gs-jh-hero,
  .gs-sys-hero,
  .gs-learn-hero,
  .gs-about-hero,
  .gs-contact-hero,
  .gs-faq-hero,
  .gs-policies-hero,
  .gs-science-hero,
  .gs-404-hero{
    min-height:auto!important;
    padding-top:82px!important;
    padding-bottom:72px!important;
  }

  .gs-phone-shell{
    width:100%!important;
    padding:24px!important;
  }

  .gs-market-card-body,
  .gs-prod-body,
  .gs-learn-body,
  .gs-science-body{
    padding:20px!important;
  }
}
