/* PVAMARKET V40 mobile navigation/footer overrides — loaded last */
.pva-mobile-toggle,.pva-mobile-panel,.pva-mobile-primary,.pva-mobile-services-panel{display:none}
@media (max-width: 768px){
  html,body{overflow-x:hidden}
  header{position:sticky!important;top:0!important;z-index:10000!important;background:#020b16!important}
  header .container.nav,
  header .header-inner,
  header .nav-wrap,
  header.top .wrap.nav{
    width:100%!important;max-width:none!important;height:68px!important;min-height:68px!important;
    padding:0 10px!important;margin:0!important;display:flex!important;align-items:center!important;
    justify-content:flex-start!important;flex-wrap:nowrap!important;position:relative!important;overflow:visible!important;
    box-sizing:border-box!important;
  }

  /* Brand stays on the left on mobile. */
  header .logo,header .brand{
    position:static!important;left:auto!important;top:auto!important;transform:none!important;
    margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    gap:6px!important;white-space:nowrap!important;z-index:2!important;font-size:14px!important;line-height:1!important;
    flex:0 0 auto!important;max-width:145px!important;
  }
  header .logo-symbol{width:32px!important;height:32px!important;min-width:32px!important;border-radius:10px!important}
  header .brand-mark{width:32px!important;height:32px!important;min-width:32px!important;border-radius:10px!important;padding:2px!important}
  header .brand-mark i{font-size:16px!important}

  /* Hide the desktop navigation/tools; mobile replacements are built by JS. */
  header > .container.nav > nav,
  header > .container.nav > .header-cart-btn,
  header > .container.nav > .search,
  header > .container.nav > .login,
  header.top > .wrap.nav > a:not(.brand),
  header .pva-v33-original-nav,
  header .pva-v33-original-cart,
  header .pva-v33-original-search,
  header .pva-v33-original-login{display:none!important}

  /* HOME + SERVICES remain visible in the header. */
  .pva-mobile-primary{
    display:flex!important;align-items:center!important;gap:2px!important;margin-left:auto!important;margin-right:44px!important;
    height:100%!important;white-space:nowrap!important;min-width:0!important;
  }
  .pva-mobile-primary>a,.pva-mobile-services-btn{
    display:flex!important;align-items:center!important;justify-content:center!important;height:34px!important;
    padding:0 7px!important;border:0!important;background:transparent!important;color:#fff!important;
    font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;text-decoration:none!important;
    letter-spacing:.1px!important;cursor:pointer!important;border-radius:8px!important;
  }
  .pva-mobile-primary>a:hover,.pva-mobile-services-btn:hover,.pva-mobile-services-btn[aria-expanded="true"]{color:#ffd23f!important;background:#081827!important}
  .pva-mobile-services-btn::after{content:"▾";font-size:8px;margin-left:4px;opacity:.85}

  .pva-mobile-toggle{
    display:flex!important;position:absolute!important;right:8px!important;top:50%!important;transform:translateY(-50%)!important;
    width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;margin:0!important;
    align-items:center!important;justify-content:center!important;border:1px solid #164660!important;border-radius:10px!important;
    background:#071727!important;color:#fff!important;font-size:25px!important;font-weight:900!important;line-height:1!important;
    box-shadow:0 8px 22px rgba(0,0,0,.35)!important;z-index:5!important;cursor:pointer!important;
  }
  .pva-mobile-toggle::before{content:"⋮";display:block;transform:translateY(-2px)}
  .pva-mobile-toggle span{display:none!important}

  /* SERVICES dropdown below header. */
  .pva-mobile-services-panel{
    display:none;position:absolute;left:8px;right:8px;top:68px;z-index:10002;padding:8px;
    background:rgba(3,14,25,.995);border:1px solid #17435c;border-radius:0 0 12px 12px;
    box-shadow:0 22px 48px rgba(0,0,0,.55);max-height:68vh;overflow:auto;
  }
  .pva-mobile-services-panel.is-open{display:grid!important;grid-template-columns:1fr 1fr;gap:5px!important}
  .pva-mobile-services-panel a{display:flex;align-items:center;min-height:38px;padding:7px 9px;border-radius:8px;background:#071827;border:1px solid #12384f;color:#d5e3ee;font-size:9.5px;font-weight:750;text-decoration:none;line-height:1.25}

  /* Three-dot panel contains everything except Home and Services. */
  .pva-mobile-panel{
    display:none;position:absolute;left:8px;right:8px;top:68px;z-index:10001;
    padding:9px;background:rgba(3,14,25,.995);border:1px solid #17435c;border-radius:0 0 12px 12px;
    box-shadow:0 22px 48px rgba(0,0,0,.55);max-height:calc(100vh - 82px);overflow:auto;
  }
  .pva-mobile-panel.is-open{display:block!important}
  .pva-mobile-links{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .pva-mobile-links>a{
    min-height:40px;display:flex;align-items:center;padding:0 11px;border-radius:8px;background:#081b2b;
    border:1px solid #12384f;color:#f4f8fc;font-size:11px;font-weight:800;text-decoration:none;box-sizing:border-box;
  }
  .pva-mobile-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
  .pva-mobile-tools .header-cart-btn,.pva-mobile-tools .login{
    display:flex!important;position:static!important;width:100%!important;min-height:40px!important;height:40px!important;margin:0!important;
    align-items:center!important;justify-content:center!important;border-radius:8px!important;box-sizing:border-box!important;
  }
  .pva-mobile-tools .header-cart-btn{gap:8px!important}
  .pva-mobile-tools .header-cart-btn::after{content:"Cart";font-size:11px;font-weight:800}
  .pva-mobile-tools .search{display:flex!important;grid-column:1/-1;width:100%!important;max-width:none!important;margin:0!important}
  .pva-mobile-tools .search input{height:40px!important;font-size:11px!important}

  /* User asked to remove the handwritten hero note on mobile. */
  .hero-note{display:none!important}

  /* Compact footer. Newsletter is hidden on mobile. */
  footer{margin-top:18px!important;padding:14px 0 8px!important}
  footer .container{width:92%!important;max-width:none!important;margin:auto!important;padding:0!important}
  footer .footer-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:11px 14px!important;text-align:left!important;align-items:start!important}
  footer .footer-brand{grid-column:1/-1!important;text-align:center!important;padding-bottom:1px!important}
  footer .footer-brand .logo{justify-content:center!important;position:static!important;transform:none!important;font-size:19px!important;gap:7px!important;max-width:none!important}
  footer .footer-brand .logo-symbol{width:32px!important;height:32px!important;min-width:32px!important}
  footer .footer-brand h5{font-size:11px!important;margin:4px 0 0!important}
  footer .footer-brand p{display:none!important}
  footer .socials{justify-content:center!important;margin-top:7px!important;gap:7px!important}
  footer .socials i{width:27px!important;height:27px!important;font-size:10px!important}
  footer .footer-grid h5{font-size:11.5px!important;margin:0 0 4px!important}
  footer .footer-grid ul{gap:1px!important}
  footer .footer-grid li{font-size:10px!important;line-height:1.4!important}
  footer .pva-mobile-hide-newsletter{display:none!important}
  footer .bottom{display:block!important;margin-top:9px!important;padding-top:8px!important;text-align:center!important;font-size:9px!important;line-height:1.3!important}
  footer .bottom span{display:block!important;margin:2px 0!important}
  footer .footer-policy-links{margin-top:5px!important;display:flex!important;flex-direction:row!important;justify-content:center!important;gap:5px!important;font-size:8.8px!important}
  footer .footer-policy-links span{display:inline!important}
}

@media (max-width: 390px){
  header .logo,header .brand{font-size:12.5px!important;gap:5px!important;max-width:128px!important}
  header .logo-symbol,header .brand-mark{width:29px!important;height:29px!important;min-width:29px!important}
  .pva-mobile-primary{margin-right:40px!important;gap:0!important}
  .pva-mobile-primary>a,.pva-mobile-services-btn{font-size:9px!important;padding:0 5px!important}
  .pva-mobile-toggle{right:6px!important;width:34px!important;height:34px!important;min-width:34px!important}
  footer .footer-grid{gap:9px 10px!important}
  footer .footer-grid li{font-size:9.5px!important}
}

/* PVAMARKET V41 — force requested mobile header order:
   BRAND (left) -> HOME -> SERVICES -> three-dot (right) */
@media (max-width:768px){
  header .container.nav > .logo,
  header .header-inner > .logo,
  header .nav-wrap > .logo,
  header.top .wrap.nav > .brand,
  header .container.nav > .brand{
    order:0!important;
    margin-left:0!important;
    margin-right:6px!important;
    flex:0 0 auto!important;
  }
  header .pva-mobile-primary{
    order:1!important;
    margin-left:0!important;
    margin-right:46px!important;
    flex:0 1 auto!important;
  }
  header .pva-mobile-toggle{
    order:2!important;
  }
}
@media (max-width:390px){
  header .container.nav > .logo,
  header .header-inner > .logo,
  header .nav-wrap > .logo,
  header.top .wrap.nav > .brand,
  header .container.nav > .brand{
    margin-right:3px!important;
    max-width:122px!important;
  }
  header .pva-mobile-primary{margin-left:0!important;margin-right:40px!important}
}

/* PVAMARKET V42 — slightly larger/bolder mobile brand + HOME/SERVICES */
@media (max-width:768px){
  header .logo,header .brand{
    font-size:16px!important;
    font-weight:900!important;
    gap:7px!important;
    max-width:158px!important;
  }
  header .logo-symbol,header .brand-mark{
    width:36px!important;height:36px!important;min-width:36px!important;border-radius:11px!important;
  }
  header .brand-mark i{font-size:18px!important;font-weight:900!important}
  .pva-mobile-primary>a,.pva-mobile-services-btn{
    font-size:11.5px!important;
    font-weight:950!important;
    padding:0 7px!important;
    letter-spacing:.15px!important;
  }
}
@media (max-width:390px){
  header .logo,header .brand{font-size:14px!important;gap:5px!important;max-width:137px!important}
  header .logo-symbol,header .brand-mark{width:32px!important;height:32px!important;min-width:32px!important}
  header .brand-mark i{font-size:16px!important}
  .pva-mobile-primary>a,.pva-mobile-services-btn{font-size:10px!important;font-weight:950!important;padding:0 5px!important}
}

/* PVAMARKET V43 — larger/bolder mobile header + sticky header */
@media (max-width:768px){
  header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:10050!important;
    background:#020b16!important;
    box-shadow:0 8px 24px rgba(0,0,0,.34)!important;
  }
  body{padding-top:68px!important}
  header .logo,header .brand{
    font-size:17.5px!important;
    font-weight:1000!important;
    gap:7px!important;
    max-width:166px!important;
    letter-spacing:.1px!important;
  }
  header .logo-symbol,header .brand-mark{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
  header .brand-mark i{font-size:19px!important;font-weight:1000!important}
  .pva-mobile-primary>a,.pva-mobile-services-btn{
    font-size:12.5px!important;
    font-weight:1000!important;
    padding:0 7px!important;
    letter-spacing:.2px!important;
  }
}
@media (max-width:390px){
  header .logo,header .brand{
    font-size:15px!important;
    font-weight:1000!important;
    gap:5px!important;
    max-width:145px!important;
  }
  header .logo-symbol,header .brand-mark{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
  }
  header .brand-mark i{font-size:17px!important;font-weight:1000!important}
  .pva-mobile-primary>a,.pva-mobile-services-btn{
    font-size:10.8px!important;
    font-weight:1000!important;
    padding:0 5px!important;
  }
}

/* PVAMARKET V44 — mobile trust features in one horizontal row + footer links at opposite corners */
@media (max-width:768px){
  .trust-row{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:4px!important;
    padding:12px 5px 18px!important;
    align-items:start!important;
  }
  .trust-item{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    text-align:center!important;
    gap:5px!important;
    font-size:9px!important;
  }
  .trust-icon{
    width:29px!important;height:29px!important;min-width:29px!important;
    font-size:12px!important;
  }
  .trust-item b{font-size:9px!important;line-height:1.15!important;white-space:normal!important}
  .trust-item small{font-size:7.5px!important;line-height:1.15!important;margin-top:1px!important;white-space:normal!important}

  /* Footer: Quick Links left corner, Our Services right corner. */
  footer .footer-grid{grid-template-columns:1fr 1fr!important;column-gap:28px!important}
  footer .footer-grid > div:nth-child(2){text-align:left!important;justify-self:start!important;width:100%!important}
  footer .footer-grid > div:nth-child(3){text-align:right!important;justify-self:end!important;width:100%!important}
  footer .footer-grid > div:nth-child(3) ul{justify-items:end!important}
}
@media (max-width:390px){
  .trust-row{gap:2px!important;padding-left:3px!important;padding-right:3px!important}
  .trust-item{font-size:8.5px!important;gap:4px!important}
  .trust-icon{width:27px!important;height:27px!important;min-width:27px!important;font-size:11px!important}
  .trust-item b{font-size:8.5px!important}
  .trust-item small{font-size:7px!important}
  footer .footer-grid{column-gap:22px!important}
}
