
/* V2.3.2 mobile hardening - independent of previous CSS versions */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.mobile-safe-header{display:block!important;background:#0f172a!important;color:#fff!important;width:100%!important}
.mobile-safe-header .header-inner{max-width:1180px!important;margin:0 auto!important;min-height:68px!important;padding:0 18px!important;display:grid!important;grid-template-columns:minmax(220px,1fr) auto minmax(300px,1fr)!important;align-items:center!important;gap:24px!important}
.mobile-safe-header .site-brand{display:flex!important;align-items:center!important;gap:10px!important;text-decoration:none!important;color:#fff!important;min-width:0!important}
.mobile-safe-header .site-logo-badge{width:36px!important;height:36px!important;border-radius:9px!important;background:#ffd400!important;color:#111!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;font-size:13px!important;flex:0 0 auto!important}
.mobile-safe-header .site-title{color:#fff!important;font-size:16px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.mobile-safe-header .main-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:26px!important}
.mobile-safe-header .main-nav a,.mobile-safe-header .header-actions a{color:#fff!important;text-decoration:none!important;font-size:14px!important;font-weight:700!important;opacity:1!important}
.mobile-safe-header .header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;white-space:nowrap!important}
.mobile-safe-header .lang-switch{display:flex!important;gap:8px!important;padding-right:12px!important;border-right:1px solid rgba(255,255,255,.25)!important}
.mobile-safe-header .auth-link{padding:8px 11px!important;border-radius:8px!important}
.mobile-safe-header .auth-link.signin{border:1px solid rgba(255,255,255,.35)!important}
.mobile-safe-header .auth-link.register{background:#fff!important;color:#111827!important}
.mobile-safe-header .mobile-menu-btn{display:none!important}
.mobile-safe-header .mobile-panel{display:none!important}

@media(max-width:980px){
  .mobile-safe-header .header-inner{grid-template-columns:minmax(0,1fr) auto!important;min-height:60px!important;padding:0 14px!important;gap:10px!important}
  .mobile-safe-header .main-nav,
  .mobile-safe-header .header-actions{display:none!important}
  .mobile-safe-header .mobile-menu-btn{display:block!important;background:transparent!important;border:0!important;color:#fff!important;font-size:23px!important;line-height:1!important;padding:8px!important}
  .mobile-safe-header .site-logo-badge{width:32px!important;height:32px!important;font-size:12px!important}
  .mobile-safe-header .site-title{font-size:15px!important}
  .mobile-safe-header .mobile-panel{display:none!important;background:#0f172a!important;padding:6px 14px 14px!important;border-top:1px solid rgba(255,255,255,.10)!important}
  .mobile-safe-header .mobile-panel.open{display:block!important}
  .mobile-safe-header .mobile-panel>a{display:block!important;color:#fff!important;text-decoration:none!important;padding:11px 2px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;font-weight:650!important}
  .mobile-safe-header .mobile-lang{display:flex!important;gap:18px!important;padding-top:12px!important}
  .mobile-safe-header .mobile-lang a{color:#fff!important;text-decoration:none!important;font-weight:700!important}
}

@media(max-width:650px){
  body{background:#f4f5f7!important}
  .page-shell,.wrap{width:100%!important;max-width:100%!important;margin:0!important;padding:10px!important}
  .hero,.card{width:100%!important;max-width:100%!important;margin:0 0 10px!important;border-radius:13px!important;padding:15px!important}
  .hero h1{font-size:22px!important;line-height:1.25!important}
  .hero p,.muted{font-size:13px!important;line-height:1.55!important}

  /* prevent old placeholder logo/banner from exploding on mobile */
  .site-header img.site-logo,.mobile-safe-header img,.top img{max-width:40px!important;max-height:40px!important;width:40px!important;height:40px!important;object-fit:contain!important}
  body>img[src*="no-picture"],header>img[src*="no-picture"]{display:none!important}

  .grid{grid-template-columns:1fr!important;gap:9px!important}
  .opt{width:100%!important;padding:10px!important}
  .opt img{height:105px!important;object-fit:contain!important;background:#f8fafc!important}

  .preview-card{padding:14px!important}
  .plate-stage{min-height:165px!important;padding:16px 8px!important;margin-top:12px!important}
  .live-plate{width:100%!important;max-width:100%!important}
  .plate-number{font-size:clamp(30px,11vw,58px)!important}
  .preview-meta{gap:6px!important}
  .preview-meta span{font-size:11px!important;padding:6px 8px!important}

  .field{margin:9px 0!important}
  .field input,.field select,.field textarea{font-size:16px!important;padding:12px!important}

  /* checkout region choices */
  .ship-type-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .ship-type{padding:11px 6px!important;font-size:13px!important}

  /* bottom price box should not cover product options on phone */
  .summary{position:static!important;bottom:auto!important;width:100%!important;margin-top:10px!important;border-radius:13px!important;padding:14px!important}
  .summary .total{font-size:18px!important}
  .summary .btn{min-height:46px!important}

  .tablebox{width:100%!important;overflow-x:auto!important}
}
