/* prevent any horizontal overflow */
html,body{max-width:100%;overflow-x:clip}
img{max-width:100%;height:auto}
body>header{position:sticky;top:0;z-index:200}
body.admin-bar>header{top:32px}

@media (max-width: 900px){
  .sec{padding:60px 0}
  .sb-rd-grid{grid-template-columns:1fr}
  .sb-rd{padding:0 16px}
  .sb-dash,.sb-gate,.sb-frt{padding-left:16px;padding-right:16px}
  .band{padding:44px 26px}
  .news{padding:36px 26px}
  .pd{padding-left:24px;padding-right:24px}
  /* hard overflow containment: keep the product layout inside the screen */
  .view{overflow-x:hidden}
  .pd-grid{grid-template-columns:1fr!important}
  .pd-grid,.pd-grid>*,.pd-info,.pd-visual,.pd-desc,.pd-section,.pd-sources-grid,.pd-coa-grid,.pd-compound-grid,.sb-frt{min-width:0!important;max-width:100%!important}
  .pd img,.sb-frt img{max-width:100%!important;height:auto}
  .pd-desc,.pd-source-card,.pd-coa-card{overflow-wrap:anywhere;word-break:break-word}
}

@media (max-width: 680px){
  /* spacing */
  .sec{padding:44px 0}
  .wrap{padding-left:16px;padding-right:16px}
  .band{padding:34px 22px}
  .news{padding:28px 20px;gap:18px}
  /* header icon row — tighten so globe + theme + account + cart + burger fit */
  .nav{height:64px}
  .nav-right{gap:9px}
  .icon-btn{width:38px;height:38px}
  .wrap.nav{display:flex!important;justify-content:space-between;align-items:center;column-gap:10px}
  .logo,.custom-logo,.logo-link img{height:32px!important;width:auto!important;max-width:none!important}
  .logo-link{flex:0 0 auto;display:inline-flex;align-items:center}
  .nav-right{flex:0 0 auto;gap:7px}
  /* headings */
  .band h2,.news h3,.sb-frt-head h2,.sb-rd-intro+*,.pd-info h1{line-height:1.2}
  /* collapse multi-column layouts */
  .products,.features,.foot-grid,.pd-grid,.pd-specs,.cf-row,.sb-dash-grid,.pd-coa-grid,.pd-sources-grid,.pd-compound-grid,.info-cards,.quality-grid{grid-template-columns:1fr!important}
  .feat.wide{grid-column:span 1}
  /* hero */
  .hero{padding:60px 0 40px}
  .hero-stats{flex-wrap:wrap;gap:22px}
  .hero-cta{flex-direction:column}
  .hero-cta .btn{width:100%;justify-content:center}
  .hero-visual{height:300px}
  /* cards padding */
  .feat,.info-card,.sb-rd-card,.sb-dash-card,.spec{padding:20px}
  /* newsletter form stacks */
  .news-form{flex-direction:column;border-radius:16px}
  .news-form input{width:100%}
  .news-form .btn{width:100%;justify-content:center}
  /* footer */
  .copyright{flex-direction:column;text-align:center;gap:6px}
  /* verification gate */
  .gate-card{padding:30px 22px;border-radius:18px}
  .gate-card h2{font-size:22px}
  /* slide-in cart full width */
  .sb-cart{width:100%;max-width:100%}
  /* research database */
  .sb-rd-card{padding:18px}
  .sb-rd-card-head{flex-direction:column;align-items:flex-start}
  .sb-rd-toolbar{flex-direction:column;align-items:stretch}
  .sb-coa-lots{grid-template-columns:1fr}
  /* partner landing + dashboard + gate */
  .sb-lp-stats{grid-template-columns:1fr 1fr;gap:18px}
  .sb-lp-hero h1{font-size:30px}
  .sb-lp-card,.sb-partner-box{padding:24px 20px}
  .sb-dash-grid{gap:12px}
  .sb-code-row{flex-direction:column;align-items:flex-start;gap:10px}
  .sb-ack-detail,.sb-ack-open{margin-left:0}
  /* contact form */
  .sb-support-row{flex-direction:column;gap:0}
  /* carousel heading */
  .sb-frt-head h2{font-size:22px}
  .sb-frt-card{flex-basis:78%}
  /* modals fill the screen nicely */
  .sb-disc-inner,.sb-terms-modal-inner,.promo-card{max-width:100%;border-radius:16px;padding:24px 18px;max-height:88vh}
  .sb-disc-body,.sb-terms-modal-body,.sb-tos-scroll{font-size:13px}
  /* wide tables scroll instead of overflowing */
  .sb-ledger{display:block;overflow-x:auto;white-space:nowrap}
  /* ---- product page ---- */
  .pd{padding:34px 18px}
  .pd-back{margin-bottom:18px}
  .pd-grid{gap:24px}
  .pd-visual{height:340px!important;aspect-ratio:auto!important;min-height:0!important;padding:14px!important;background:var(--panel2);border-radius:18px}
  .pd-visual .real-vial{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain;border-radius:12px}
  .pd-info h1{font-size:28px!important;line-height:1.15}
  .pd-price{font-size:26px!important}
  .pd-desc{font-size:14px!important}
  .pd-sec-head h2{font-size:20px!important}
  .sale-banner{font-size:11px!important;line-height:1.35;white-space:normal!important;padding:8px 30px!important}
  .pd-info h1{font-size:30px;line-height:1.15}
  .pd-price{font-size:28px}
  .pd-specs{grid-template-columns:1fr 1fr!important;gap:10px}
  .pd-info form.cart{flex-wrap:wrap;gap:12px;margin:20px 0}
  .pd-info form.cart .quantity{flex:0 0 auto}
  .pd-info form.cart .quantity input{width:84px}
  .pd-info form.cart button.single_add_to_cart_button{flex:1 1 100%;width:100%;justify-content:center;text-align:center}
  .pd-cta{flex-direction:column}
  .pd-cta>*{width:100%}
  .pd-section{margin:36px 0}
  .pd-sec-head{gap:12px}
  .pd-sec-icon{width:40px;height:40px}
  .pd-research-notice{flex-direction:column;gap:10px;padding:18px}
  .pd-coa-purity{font-size:30px}
  .pd-coa-card,.pd-info-card,.pd-source-card{padding:18px}
  table{max-width:100%;display:block;overflow-x:auto}
}

@media (max-width: 420px){
  .nav-right{gap:5px}
  .icon-btn{width:34px;height:34px}
  #sbLangBtn{display:none!important}
  .foot-grid,.sb-lp-stats{grid-template-columns:1fr!important}
  .sb-frt-card{flex-basis:84%}
  .gate-card{padding:24px 18px}
  .hero h1{font-size:34px}
}
/* ===== Mobile organization pass (2026-07-16) ===== */
@media (max-width: 680px){
  .sec{padding:40px 0}
  .sec-head{margin-bottom:20px}
  h1,h2{text-wrap:balance}
  /* promo top bar: compact and centered */
  .sb-jb2-inner{padding:8px 12px;font-size:12px;line-height:1.45;gap:8px;flex-wrap:wrap;justify-content:center;text-align:center}
  /* hero stats: tidy 3-up grid */
  .hero-stats{display:grid!important;grid-template-columns:repeat(3,1fr);gap:12px;text-align:center}
  .hero-stats .s{min-width:0}
  /* trust badges: 2-up grid instead of a ragged row */
  .trust-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
  .trust-item{min-width:0;font-size:12.5px}
  /* best-seller slider: one card at a time, full-width CTA */
  .sb-pop-card{flex-basis:80%}
  .sb-pop-row{flex-wrap:wrap;gap:8px}
  .sb-pop-view{width:100%;justify-content:center;text-align:center}
  /* shop cards: stack the two buttons */
  .card .actions{flex-direction:column;gap:8px}
  .card .actions .btn{width:100%;justify-content:center}
  .card .top{flex-direction:column;align-items:flex-start;gap:4px}
  /* quality section: 3-up stats, swipeable tab pills */
  .qstats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:center}
  .qtabs{display:flex;overflow-x:auto;gap:8px;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .qtabs::-webkit-scrollbar{display:none}
  .qtab{flex:0 0 auto;white-space:nowrap}
  /* 16px inputs stop iOS focus-zoom; comfortable tap targets */
  input,select,textarea{font-size:16px!important}
  .btn,summary{min-height:42px}
  details summary{padding:14px 16px}
  .foot-grid{gap:22px}
}
@media (max-width: 420px){
  .hero-stats{gap:8px}
  .sb-pop-card{flex-basis:86%}
}

/* ===== MOBILE PASS — buy-first, calm (2026-07-21) ===== */
@media (max-width: 980px){
  /* desktop dropdowns never appear on mobile; the drawer handles nav */
  .wrap.nav .nav-links,.sb-navgroup,.sb-navgroup-menu{display:none!important}
  .wrap.nav{justify-content:space-between}
}
@media (max-width: 680px){
  /* header: logo + essentials only */
  body > header .logo-link img,body > header .nav img.logo{height:29px!important}
  .nav{height:60px}
  .nav-right{gap:4px}
  .icon-btn{width:34px;height:34px}
  #sbLangBtn{display:none!important}
  /* promo bar: one tidy line, code stays tappable */
  .sb-jb2-inner{padding:8px 34px;gap:6px;font-size:11.5px}
  .sb-jb2-badge{font-size:9px;padding:3px 8px}
  .sb-jb2-msg b{font-size:12px}
  .sb-jb2-ends{width:100%;text-align:center;font-size:11px;margin-top:2px}
  .sb-jb2-code{font-size:11.5px;padding:4px 10px}
  /* hero: shorter, CTA first */
  .hero{padding:38px 0 26px}
  .hero h1{font-size:clamp(30px,8.5vw,40px);line-height:1.08}
  .hero p.sub{font-size:15px;line-height:1.65}
  .hero-cta{flex-direction:column;gap:10px;width:100%}
  .hero-cta .btn{width:100%;justify-content:center}
  /* new sections stack cleanly */
  .sb-chain{grid-template-columns:1fr!important;gap:26px}
  .sb-chain-cta{flex-direction:column}
  .sb-chain-cta .btn{width:100%;justify-content:center}
  .sb-cert-grid{grid-template-columns:1fr!important;gap:24px}
  .sb-cert-doc{padding:18px}
  .sb-cert-row{font-size:12.5px}
  .sb-spec-grid,.sb-further-grid,.sb-guides-grid,.sb-404-grid{grid-template-columns:1fr!important}
  .sb-verify-steps{grid-template-columns:1fr!important}
  .sb-verify-row{flex-direction:column;gap:0}
  .sb-verify-form{padding:18px}
  .sb-404{margin:44px auto 60px}
  .sb-404-search{flex-direction:column}
  .sb-404-search .btn{width:100%;justify-content:center}
  /* product grid: two per row reads better than one on phones */
  .products{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .card .body{padding:12px!important;gap:6px}
  .card h3{font-size:13.5px}
  .card .cat{font-size:11px}
  .card .price{font-size:14px}
  .card .actions{flex-direction:column;gap:6px}
  .card .actions .btn{width:100%;font-size:11px!important;padding:9px 6px!important}
  /* product page: buy box first */
  .pd{padding:26px 16px}
  .pd-info h1{font-size:26px!important}
  .pd-price{font-size:24px!important}
  .sb-dosage-opts{gap:8px}
  .sb-dose{padding:9px 14px!important;font-size:13px}
  .sb-trustline{gap:8px 12px}
  .sb-trustline span{font-size:11.5px}
  /* section rhythm */
  .sec{padding:34px 0}
  .sec-head h2,.sb-cert-h{font-size:clamp(23px,6.6vw,30px)!important}
  #products .sb-pop-head{grid-template-columns:1fr!important}
  #products .sb-pop-head .sb-pop-viewall{grid-column:1;justify-self:start;margin-top:10px}
  /* footer breathing room */
  body > footer{margin-top:44px}
  .foot-grid{gap:20px}
}
@media (max-width: 420px){
  .products{grid-template-columns:1fr!important}
  .sb-jb2-inner{padding:8px 30px}
  body > header .logo-link img,body > header .nav img.logo{height:27px!important}
}
/* mobile drawer: grouped sections, comfortable tap targets */
@media (max-width: 980px){
  .mm-section{display:block;margin:16px 16px 6px;font-family:var(--display,sans-serif);font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--dim,#5f7180)}
  .mm-section:first-child{margin-top:2px}
  .mm-links a{min-height:46px;font-size:15.5px!important}
}