/* JP-HÁZ – MOBIL PRIORITÁS V1
 * Csak <=760px nézet. Asztali oldalt nem módosítja.
 * Cél: kevesebb vizuális zaj, nagyobb érintési célok, gyorsabb vásárlási út.
 */

@media (max-width:760px){
  *,*::before,*::after{box-sizing:border-box}
  html,body{width:100%;max-width:100%;overflow-x:hidden!important;-webkit-text-size-adjust:100%}
  .container{width:calc(100% - 20px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  input,select,textarea,button{font-size:16px}

  /* ---------- Fejléc: mobilon csak a lényeg ---------- */
  .site-topbar{height:auto!important;min-height:38px!important}
  .site-topbar-inner{
    width:calc(100% - 18px)!important;
    min-height:38px!important;
    padding:4px 0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
    align-items:center!important;
  }
  .site-topbar-inner>span,
  .site-topbar-inner>a[href^="mailto:"],
  .site-topbar-inner .topbar-social,
  .site-topbar-inner .topbar-spacer{display:none!important}
  .site-topbar-inner>a[href^="tel:"]{
    display:flex!important;align-items:center!important;min-height:32px!important;
    margin:0!important;padding:0 2px!important;white-space:nowrap!important;
    font-size:12px!important;font-weight:900!important;color:#fff!important;
    -webkit-text-fill-color:#fff!important;text-decoration:none!important;
  }
  .site-topbar-inner .topbar-contact{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-height:32px!important;padding:6px 10px!important;margin:0!important;
    border-radius:8px!important;font-size:11px!important;font-weight:900!important;
    white-space:nowrap!important;
  }

  .header-main{
    width:calc(100% - 18px)!important;
    min-height:64px!important;
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr)!important;
    gap:8px!important;align-items:center!important;
    padding:7px 54px 7px 0!important;
  }
  .site-logo{width:64px!important;min-width:64px!important;margin:0!important}
  .site-logo img{display:block!important;width:60px!important;max-width:60px!important;height:auto!important}
  .header-search{
    width:100%!important;min-width:0!important;margin:0!important;
    border-radius:10px!important;
  }
  .header-search input[type="search"]{
    width:100%!important;min-width:0!important;min-height:46px!important;
    padding:10px 44px 10px 12px!important;font-size:16px!important;
  }
  .header-search button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}

  #cartOpen{
    top:46px!important;right:9px!important;
    width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;
    padding:0!important;
  }

  .main-nav .nav-shell{width:calc(100% - 18px)!important;padding:0 0 7px!important}
  #navToggle{
    width:100%!important;min-height:44px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    border-radius:9px!important;font-size:13px!important;font-weight:900!important;
  }

  /* ---------- Közös mobil címblokkok ---------- */
  .catalog-head{padding:20px 0!important}
  .catalog-head .eyebrow{display:none!important}
  .catalog-head h1{font-size:29px!important;line-height:1.08!important;margin-bottom:6px!important}
  .catalog-head p{font-size:14px!important;line-height:1.4!important;margin-top:5px!important}

  /* ---------- Főoldal: első képernyő gyors és egyértelmű ---------- */
  .hero-home{min-height:0!important;padding:22px 0!important}
  .hero-home-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  .hero-copy .eyebrow{display:none!important}
  .hero-copy h1{font-size:33px!important;line-height:1.03!important;margin:0 0 10px!important}
  .hero-copy>p:not(.eyebrow){
    font-size:14px!important;line-height:1.45!important;margin:0 0 14px!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;
  }
  .hero-buttons{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .hero-buttons .btn{min-height:48px!important;padding:10px 8px!important;font-size:11px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}

  .hero-feature-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .hero-feature-card{min-height:112px!important;border-radius:12px!important}
  .hero-feature-number,.hero-feature-copy small,.hero-feature-copy>span{display:none!important}
  .hero-feature-copy{padding:10px!important}
  .hero-feature-copy strong{font-size:15px!important;line-height:1.15!important}
  .hero-feature-media img{object-fit:contain!important}

  .category-showcase{
    display:flex!important;grid-template-columns:none!important;
    overflow-x:auto!important;overscroll-behavior-x:contain!important;
    scroll-snap-type:x mandatory!important;gap:10px!important;
    padding-top:4px!important;padding-bottom:8px!important;
    scrollbar-width:none!important;
  }
  .category-showcase::-webkit-scrollbar{display:none!important}
  .category-showcase .showcase-card{
    flex:0 0 min(82vw,300px)!important;width:min(82vw,300px)!important;
    min-height:142px!important;scroll-snap-align:start!important;
  }

  .home-system-grid{
    display:flex!important;grid-template-columns:none!important;gap:10px!important;
    overflow-x:auto!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;
    padding-bottom:5px!important;
  }
  .home-system-grid::-webkit-scrollbar{display:none!important}
  .home-system-card{
    flex:0 0 min(84vw,330px)!important;width:min(84vw,330px)!important;
    scroll-snap-align:start!important;
  }

  .featured-section .product-grid,
  .jphaz-v161-climate-section .product-grid{
    display:flex!important;grid-template-columns:none!important;gap:10px!important;
    overflow-x:auto!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;
    padding-bottom:7px!important;
  }
  .featured-section .product-grid::-webkit-scrollbar,
  .jphaz-v161-climate-section .product-grid::-webkit-scrollbar{display:none!important}
  .featured-section .product-card,
  .jphaz-v161-climate-section .product-card{
    flex:0 0 min(80vw,310px)!important;width:min(80vw,310px)!important;scroll-snap-align:start!important;
  }

  .jphaz-plettac-grid{padding:22px 14px!important;gap:16px!important}
  .jphaz-plettac-copy h2{font-size:29px!important;line-height:1.08!important}
  .jphaz-plettac-lead{font-size:14px!important;line-height:1.45!important}
  .jphaz-plettac-benefits{display:none!important}
  .jphaz-plettac-actions{gap:8px!important}
  .jphaz-plettac-actions a{min-height:46px!important}
  .jphaz-plettac-visual{min-height:180px!important}
  .jphaz-plettac-visual img{min-height:160px!important}

  /* ---------- HVAC: lista mobilon kevés zajjal ---------- */
  .hv-safe-page{padding-bottom:38px!important}
  .hv-hero{padding:18px 0!important}
  .hv-hero h1{font-size:29px!important;line-height:1.08!important}
  .hv-hero p{font-size:14px!important;line-height:1.4!important}
  .hv-tabs{display:flex!important;overflow-x:auto!important;gap:7px!important;scrollbar-width:none!important}
  .hv-tabs::-webkit-scrollbar{display:none!important}
  .hv-tabs a{flex:0 0 auto!important;min-height:42px!important;display:flex!important;align-items:center!important;padding:8px 12px!important}
  .hv-mobile-filterbar{margin:9px 0 11px!important}
  .hv-mobile-filter-toggle{min-height:48px!important}
  .hv-summary{margin:10px 2px 9px!important}
  .hv-grid{grid-template-columns:1fr!important;gap:11px!important}
  .hv-card{border-radius:12px!important}
  .hv-img{height:160px!important;padding:9px!important}
  .hv-body{padding:11px!important}
  .hv-meta{font-size:11px!important;line-height:1.35!important}
  .hv-card h3{font-size:15px!important;line-height:1.28!important;margin-bottom:7px!important}
  .hv-badges{gap:4px!important;margin-bottom:7px!important}
  .hv-badge{font-size:9px!important;padding:5px 6px!important}
  .hv-badge.jp-mobile-hide-normal-availability{display:none!important}
  .hv-features{gap:4px!important;margin-bottom:5px!important}
  .hv-feature{font-size:9px!important;padding:4px 6px!important}
  .hv-feature:nth-child(n+3){display:none!important}
  .hv-price{font-size:21px!important;padding-top:5px!important}
  .hv-actions{gap:7px!important;margin-top:9px!important}
  .hv-actions a,.hv-actions button{min-height:46px!important;font-size:13px!important}
  .hv-compare-pick{top:8px!important;right:8px!important;padding:6px 7px!important;font-size:10px!important}

  /* ---------- Termékoldal: ár + vásárlás kerüljön fókuszba ---------- */
  .product-detail-page{padding-bottom:88px!important}
  .product-detail-page .product-detail{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .product-detail-page .detail-image{min-height:0!important;padding:10px!important}
  .product-detail-page .detail-image img{max-height:330px!important;object-fit:contain!important}
  .product-detail-page .detail-copy{padding:15px!important;border-radius:13px!important}
  .product-detail-page .detail-copy h1{font-size:24px!important;line-height:1.12!important;margin-bottom:7px!important}
  .product-detail-page .detail-sku{font-size:10px!important;margin:4px 0!important}
  .product-detail-page .detail-price{font-size:27px!important;line-height:1.1!important;margin:10px 0!important}
  .product-detail-page .detail-price small{font-size:11px!important}
  .product-detail-page .detail-lead{
    font-size:13px!important;line-height:1.45!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;overflow:hidden!important;
  }
  .product-detail-page .feature-pills{
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important;scrollbar-width:none!important;
  }
  .product-detail-page .feature-pills::-webkit-scrollbar{display:none!important}
  .product-detail-page .feature-pills span{flex:0 0 auto!important;white-space:nowrap!important;font-size:10px!important}
  .product-detail-page .detail-buy-row{grid-template-columns:92px minmax(0,1fr)!important;gap:8px!important}
  .product-detail-page #productQty{min-height:48px!important;width:100%!important}
  .product-detail-page #productAddCart{min-height:50px!important;font-size:15px!important}
  .product-detail-page .detail-tabs{
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important;
  }
  .product-detail-page .detail-tabs::-webkit-scrollbar{display:none!important}
  .product-detail-page .detail-tabs button{flex:0 0 auto!important;white-space:nowrap!important;min-height:44px!important}

  /* ---------- Kosár: mobilon csak a bruttó döntési szám kell ---------- */
  .cart-page{padding-bottom:84px!important}
  .full-cart-shell{padding-top:10px!important;padding-bottom:24px!important}
  .full-cart-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .cart-summary-card{position:static!important;max-width:100%!important}
  .cart-summary-card h2{font-size:18px!important}
  .jp-mobile-secondary-total{display:none!important}
  .cart-summary-card .summary-total{padding-top:10px!important}
  .cart-summary-card .summary-total strong{font-size:23px!important}
  .cart-summary-card .btn.full{min-height:52px!important;font-size:14px!important}

  /* ---------- Pénztár: egyértelmű, keskeny, kevés technikai szöveg ---------- */
  .checkout-page{padding-bottom:36px!important}
  .checkout-page .catalog-head p{display:none!important}
  .checkout-shell{padding-top:9px!important;padding-bottom:32px!important}
  .checkout-layout{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .checkout-section{padding:13px!important;margin-bottom:9px!important;border-radius:11px!important}
  .checkout-section h2{font-size:17px!important;line-height:1.2!important;margin-bottom:11px!important}
  .checkout-grid,.address-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  .checkout-grid input,.checkout-grid select,.checkout-grid textarea{min-height:48px!important}
  .checkout-option{min-height:50px!important;padding:10px!important}
  .checkout-option strong{font-size:13px!important}
  .checkout-option.jphaz-selected small{font-size:11px!important;line-height:1.4!important}
  .checkout-rule-note{font-size:11px!important;line-height:1.4!important;padding:9px 10px!important}
  .checkout-consent{font-size:11px!important;line-height:1.45!important}
  .checkout-summary-card{position:static!important;padding:14px!important}
  .checkout-summary-card h2{font-size:18px!important}
  .checkout-summary-line.total strong{font-size:20px!important}
  .checkout-security-note{display:none!important}
  #checkoutPaymentObligation{font-size:11px!important;line-height:1.4!important}
  #checkoutSubmit{min-height:54px!important;font-size:12px!important;line-height:1.3!important;padding:10px!important}

  /* ---------- Mobil alsó vásárlási sávok ---------- */
  .jp-mobile-actionbar{
    position:fixed!important;left:10px!important;right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    z-index:2147482500!important;
    min-height:62px!important;padding:8px!important;
    display:none;align-items:center!important;gap:9px!important;
    border:1px solid rgba(255,121,0,.70)!important;border-radius:14px!important;
    background:rgba(10,14,18,.97)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.48)!important;
    backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
  }
  .jp-mobile-actionbar.jp-show{display:flex!important}
  .jp-mobile-actionbar .jp-mobile-action-price{
    min-width:0!important;flex:1!important;color:#fff!important;
    font-size:11px!important;line-height:1.2!important
  }
  .jp-mobile-actionbar .jp-mobile-action-price strong{
    display:block!important;color:#fff!important;font-size:18px!important;line-height:1.05!important;white-space:nowrap!important
  }
  .jp-mobile-actionbar .jp-mobile-action-btn{
    flex:0 0 auto!important;min-width:126px!important;min-height:46px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    padding:9px 14px!important;border:0!important;border-radius:10px!important;
    background:#ff7900!important;color:#111!important;-webkit-text-fill-color:#111!important;
    text-decoration:none!important;font-size:13px!important;font-weight:950!important;cursor:pointer!important;
  }
  body.jphaz-mobile-menu-open .jp-mobile-actionbar,
  body.jphaz-cart-open .jp-mobile-actionbar,
  html.jphaz-cart-open .jp-mobile-actionbar{display:none!important}
}

@media (max-width:390px){
  .hero-copy h1{font-size:30px!important}
  .hero-buttons{grid-template-columns:1fr!important}
  .hero-feature-grid{grid-template-columns:1fr 1fr!important}
  .hero-feature-card{min-height:102px!important}
  .product-detail-page .detail-copy h1{font-size:22px!important}
}


/* JPHAZ_MOBILE_PRIORITY_V2_FIXES
 * 1) A termékoldalnak már volt saját sticky CTA-ja; a V1 második sávját letiltjuk.
 * 2) Üres kosárnál ne jelenjen meg gyors "PÉNZTÁR" sáv.
 */
@media (max-width:760px){
  #jpMobileProductBuyBar{display:none!important}
  body.jphaz-product-sticky-cta .product-detail-page{padding-bottom:24px!important}
  body.jp-mobile-cart-empty #jpMobileCartCheckoutBar{display:none!important}
}

