/* Viken Profil website/webshop 6.3.15 – shared mobile hardening */
@media (max-width: 820px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
  *{min-width:0}
  img,video,iframe,canvas{max-width:100%;height:auto}
  input,select,textarea{font-size:16px!important;max-width:100%;width:100%}
  button,a,input,select,textarea{touch-action:manipulation}
  button,.btn,.cta,.primary,.secondary,[type="submit"]{min-height:44px}

  /* Headers */
  .top,.vp-global-header-inner{padding-left:14px!important;padding-right:14px!important}
  .vp-global-header-inner{height:58px!important}
  .vp-global-logo{max-width:160px!important;height:38px!important;flex-basis:auto!important}
  .logo{max-width:108px!important;height:auto!important}
  .nav{gap:10px!important}
  .nav a:not(.cart):not(.shop),.vp-global-nav>a:not(.vp-shop-cta){display:none!important}
  .cart,.shop,.vp-shop-cta{padding:10px 11px!important;font-size:11px!important}

  /* Compact mobile rhythm */
  main{max-width:100%!important}
  .hero,.section,.service,.detail-section,.profile-shop,.promise{padding-left:14px!important;padding-right:14px!important}
  h1{font-size:clamp(34px,11vw,48px)!important;overflow-wrap:anywhere}
  h2{overflow-wrap:anywhere}
  .hero p,.lead{font-size:14px!important;line-height:1.5!important}
  .sectionhead{gap:8px!important;margin-bottom:16px!important}

  /* Forms and inquiries */
  form,.form,.inquiry,.request-form,.contact-form{max-width:100%!important}
  .inquiry-grid,.form-grid,.formGrid,.grid.form-grid,.contact-grid,.request-grid{grid-template-columns:1fr!important;gap:9px!important}
  .field.full,.span2{grid-column:auto!important}
  .field{gap:5px!important}
  .field input,.field select,.field textarea,input,select,textarea{padding:12px!important;min-height:44px}
  textarea{min-height:100px!important}
  .modal-wrap{padding:8px!important;align-items:flex-end!important}
  .modal{width:100%!important;max-width:none!important;max-height:92dvh!important;padding:16px!important;border-radius:0!important}
  .modal-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
  .modal-actions button{width:100%!important}
  .drawer{width:100%!important;max-width:none!important;padding:16px!important}
  .drawer-actions{gap:7px!important}
  .logo-upload{padding:14px!important}

  /* Product detail */
  .product-main{grid-template-columns:1fr!important;gap:18px!important;padding:16px 14px 38px!important}
  .gallery{gap:6px!important}
  .gallery .main{aspect-ratio:1/1!important}
  .size-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .profile-options{grid-template-columns:1fr!important;gap:6px!important}
  .purchase-actions{grid-template-columns:1fr!important;gap:7px!important}
  .purchase-actions>*{width:100%!important}
  .detail-inner,.detail-copy{grid-template-columns:1fr!important;gap:18px!important}
  .cart-fab{right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;padding:12px 14px!important}

  /* Checkout */
  .layout,.checkout-layout,.order-layout{grid-template-columns:1fr!important;gap:18px!important}
  .summary,.order-summary{position:static!important;padding:17px!important}
  .choicegrid{grid-template-columns:1fr!important;gap:7px!important}
  .step{padding:20px 0!important}
  .stephead{margin-bottom:14px!important}

  /* Cards/listings: two compact columns where suitable */
  .product-grid,.products-grid,.vp-recent-grid,.category-grid,.categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .product-card,.vp-recent-card,.category-card{min-width:0!important}

  /* Footer */
  .foot,.footgrid,.vp-footer-grid{grid-template-columns:1fr 1fr!important;gap:20px 14px!important}
  .bottom,.vp-footer-bottom{display:block!important;line-height:1.7!important}
  footer{padding-left:14px!important;padding-right:14px!important}
}

@media (max-width: 480px){
  .product-grid,.products-grid,.vp-recent-grid,.category-grid,.categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .foot,.footgrid,.vp-footer-grid{grid-template-columns:1fr!important}
  .hero,.section,.service,.detail-section{padding-left:12px!important;padding-right:12px!important}
  .size-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
