/* ==========================================================================
   JaPro Mobile PRO (UX/UI & CRO Redesign) — PrestaShop 8.2 / Electshop
   100% isolated to mobile viewports (<= 767px). Desktop (>= 768px) untouched.
   ========================================================================== */

/* Hide mobile-only elements on desktop */
.jp-mob-call-cta,
.jp-mob-tabbar,
.jp-pdp-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --jp-orange: #ff6a00;
    --jp-orange-dark: #e05d00;
    --jp-green: #059669;
    --jp-green-bg: #ecfdf5;
    --jp-green-border: #10b981;
    --jp-ink: #0f172a;
    --jp-muted: #64748b;
    --jp-surface: #f4f6f9;
    --jp-border: #e2e8f0;
  }

  /* Prevent horizontal overflow & reserve space for sticky bottom bars */
  html, body {
    overflow-x: hidden;
  }
  body {
    background-color: var(--jp-surface) !important;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body#checkout {
    padding-bottom: 16px !important;
  }

  /* ========================================================================
     ETAP 1: COMPACT STICKY MOBILE HEADER + SINGLE PROMINENT CALL BUTTON
     ======================================================================== */
  #header {
    position: sticky !important;
    top: 0 !important;
    z-index: 950 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1) !important;
  }

  /* Slim dark top utility bar: shipping urgency + free delivery */
  #header .header-nav {
    background: #0f172a !important;
    min-height: 28px !important;
    padding: 4px 0 !important;
    border-bottom: 2px solid var(--jp-orange) !important;
  }
  #header .header-nav > .container {
    min-height: 22px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  #header .header-nav .left-nav {
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  #header #cznavcmsblock,
  #header #cznavcmsblock .offer-text {
    font-size: 11px !important;
    line-height: 1.25 !important;
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Remove tiny duplicate phone text in top bar (we have ONE big button below) */
  #header .jp-mobile-phone {
    display: none !important;
  }

  /* Compact main header row (frameless, centered phone, larger 44px hamburger) */
  #header .header-top {
    background: #ffffff !important;
    padding: 6px 0 10px !important;
  }
  #header .header-top > .container {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) 44px !important;
    gap: 8px 6px !important;
    padding: 0 10px !important;
    align-items: center !important;
    position: relative !important;
  }

  /* Logo */
  #header .header_logo {
    width: 78px !important;
    min-width: 78px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
  }
  #header .header_logo img {
    max-height: 28px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  /* Middle + Cart row: Phone centered cleanly, Cart on the right */
  #header .header-top-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-height: 44px !important;
    margin: 0 !important;
  }
  /* Hide account icon in tight mobile header (still in menu) to give Call + Cart room */
  #header .header-top-right .user-info,
  #header .header-top-right #_desktop_user_info {
    display: none !important;
  }

  /* Frameless, centered, larger Click-to-Call (44px touch height) */
  #header .jp-mob-call-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 44px !important;
    margin: 0 auto !important;
    padding: 0 6px !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #0f172a !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -0.02em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }
  #header .jp-mob-call-cta:active {
    transform: scale(0.96);
    background: #ecfdf5 !important;
  }
  #header .jp-mob-call-cta .jp-mob-call-ico {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(16, 185, 129, 0.14) !important;
    color: var(--jp-green) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  #header .jp-mob-call-cta .jp-mob-call-ico::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    background: rgba(16, 185, 129, 0.42) !important;
    animation: jpPhoneRipple 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
    pointer-events: none !important;
  }
  #header .jp-mob-call-cta svg {
    position: relative !important;
    z-index: 1 !important;
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
    animation: jpPhoneRing 3.6s ease-in-out infinite !important;
  }
  @keyframes jpPhoneRipple {
    0% {
      transform: scale(0.9);
      opacity: 0.75;
    }
    70% {
      transform: scale(1.85);
      opacity: 0;
    }
    100% {
      transform: scale(1.85);
      opacity: 0;
    }
  }
  @keyframes jpPhoneRing {
    0%, 82%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(-14deg); }
    89% { transform: rotate(14deg); }
    93% { transform: rotate(-10deg); }
    96% { transform: rotate(8deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    #header .jp-mob-call-cta .jp-mob-call-ico::after,
    #header .jp-mob-call-cta svg {
      animation: none !important;
    }
  }

  /* Frameless Cart icon matching Hamburger weight + orange count badge */
  #header .blockcart,
  #header #_desktop_cart {
    margin: 0 !important;
    float: none !important;
    flex-shrink: 0 !important;
  }
  #header .shopping-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #0f172a !important;
    position: relative !important;
  }
  #header .shopping-cart > .icon,
  #header .shopping-cart svg {
    filter: brightness(0) !important;
    width: 27px !important;
    height: 25px !important;
  }
  #header .shopping-cart .mobile_count,
  #header .blockcart .blockcart-header > .shopping-cart .mobile_count {
    position: absolute !important;
    top: 2px !important;
    right: 0px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: var(--jp-orange) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 16px !important;
    border: 2px solid #ffffff !important;
  }

  /* Larger, frameless 46x46px Hamburger Menu button (wider bars) */
  #header .title-horizontalmenu-mobile {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    justify-self: end !important;
  }
  #header .title-horizontalmenu-mobile .menu-title {
    width: 46px !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #0f172a !important;
  }
  #header .title-horizontalmenu-mobile .menu-title:before {
    display: inline-block !important;
    color: #0f172a !important;
    font-size: 30px !important;
    line-height: 1 !important;
    transform: scaleX(1.12) !important;
  }

  /* Sleek Frameless Search Bar (14px font prevents iOS auto-zoom!) */
  #header #search_block_top,
  #header #search-toggle,
  #header #searchbox,
  #header #searchbox .czsearch-main {
    height: 40px !important;
    min-height: 40px !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  #header #search_block_top {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
  #header #search_query_top {
    height: 40px !important;
    min-height: 40px !important;
    background: #f1f5f9 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 10px 0 0 10px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    padding: 0 12px !important;
    line-height: 40px !important;
  }
  #header #search_query_top:focus {
    background: #e2e8f0 !important;
    outline: none !important;
  }
  #header #searchbox .search-icon-btn {
    height: 40px !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 10px 10px 0 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    min-width: 68px !important;
    width: 68px !important;
  }
  #header #searchbox .submit-text {
    line-height: 40px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  /* Keep floating scroll-to-top & compact circular GDPR cookie button above bottom bar */
  a.top_button {
    bottom: 84px !important;
    right: 12px !important;
    z-index: 800 !important;
  }
  .mcm-root .mcm-reopen,
  button.mcm-reopen {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    line-height: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14) !important;
    z-index: 820 !important;
    opacity: 0.94 !important;
  }
  .mcm-root .mcm-reopen::before,
  button.mcm-reopen::before {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }
  /* Prevent 400px Google Merchant widget from overflowing & blocking mobile finder */
  #google-merchantwidget-iframe-wrapper {
    display: none !important;
  }

  /* ========================================================================
     ETAP 1B: FIXED 4-TAB MOBILE BOTTOM NAVIGATION BAR (HOME / CAT / CMS)
     ======================================================================== */
  .jp-mob-tabbar {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 940 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(8px) !important;
    border-top: 1px solid var(--jp-border) !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06) !important;
  }
  .jp-mob-tabbar a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 64px !important;
    min-height: 44px !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    position: relative !important;
  }
  .jp-mob-tabbar a.is-active {
    color: var(--jp-orange) !important;
  }
  .jp-mob-tabbar svg {
    width: 20px !important;
    height: 20px !important;
  }
  .jp-mob-tabbar .jp-tab-badge {
    position: absolute !important;
    top: 2px !important;
    right: 12px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: var(--jp-orange) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 16px !important;
    text-align: center !important;
  }

  /* ========================================================================
     ETAP 2: PRODUCT PAGE (PDP) OVERHAUL + STICKY ADD-TO-CART BAR
     ======================================================================== */
  /* Single-line scrollable breadcrumbs (saves ~95px above the fold!) */
  .breadcrumb {
    padding: 6px 12px !important;
    margin: 0 !important;
    background: transparent !important;
  }
  .breadcrumb ol {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
  }
  .breadcrumb ol li:last-child {
    max-width: 185px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .breadcrumb ol::-webkit-scrollbar {
    display: none;
  }

  body#product #wrapper {
    padding-top: 4px !important;
    background: var(--jp-surface) !important;
  }
  body#product #main .product-container,
  body#product #main > .row {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid var(--jp-border) !important;
    margin: 0 8px 12px !important;
    padding: 12px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  }

  /* Compact product photo so title, variants & price appear above the fold */
  body#product .pp-left-column {
    padding: 0 !important;
    margin-bottom: 10px !important;
  }
  body#product .product-cover {
    background: #f8fafc !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 14px !important;
    padding: 10px !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  body#product .product-cover img {
    max-height: 220px !important;
    width: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }
  body#product .images-container .product-images {
    margin-bottom: 4px !important;
  }
  body#product .images-container .product-images .thumb-container img {
    max-height: 52px !important;
    border-radius: 8px !important;
  }

  /* Right column: Crisp title, stock pill, variants & price */
  body#product .pp-right-column {
    padding: 0 !important;
  }
  body#product h1.productpage_title {
    font-size: 18px !important;
    line-height: 1.28 !important;
    font-weight: 800 !important;
    color: var(--jp-ink) !important;
    margin: 4px 0 8px !important;
    letter-spacing: -0.02em !important;
  }
  body#product .description-short {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    margin-bottom: 10px !important;
  }

  /* Clean Green Stock Pill instead of scary red countdown bar + hide duplicate legacy line */
  body#product .product-quantities {
    display: none !important;
  }
  body#product .qtyprogress {
    background: var(--jp-green-bg) !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 10px !important;
    padding: 7px 12px !important;
    margin: 8px 0 12px !important;
  }
  body#product .qtyprogress .text {
    color: #065f46 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }
  body#product .qtyprogress .progress {
    display: none !important;
  }

  /* Ergonomic Variant Pills (Length / Color) */
  body#product .product-variants-item {
    margin-bottom: 12px !important;
  }
  body#product .product-variants-item .control-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: block !important;
  }
  body#product .product-variants-item select.form-control-select {
    height: 44px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--jp-ink) !important;
    background-color: #ffffff !important;
  }
  body#product .product-variants-item ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  body#product .product-variants-item .input-radio + span,
  body#product .product-variants-item .radio-label {
    min-height: 38px !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: var(--jp-ink) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body#product .product-variants-item .input-radio:checked + span,
  body#product .product-variants-item .input-radio:checked + .radio-label {
    border-color: var(--jp-orange) !important;
    background: #fff7ed !important;
    color: #c2410c !important;
  }

  /* Prominent Price Block */
  body#product .product-prices {
    margin: 12px 0 !important;
    padding: 10px 12px !important;
    background: #f8fafc !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: 12px !important;
  }
  body#product .current-price-value,
  body#product .product-price .current-price span[itemprop="price"] {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: var(--jp-ink) !important;
    font-variant-numeric: tabular-nums !important;
  }
  .jp-unit-price-badge {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 8px !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #c2410c !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
    vertical-align: middle !important;
  }

  /* Live Shipping Cutoff & B2B Trust Card on PDP */
  .jp-pdp-shipping-card {
    margin: 12px 0 6px !important;
    padding: 11px 12px !important;
    background: #f8fafc !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .jp-pdp-ship-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    color: #334155 !important;
  }
  .jp-pdp-ship-row strong {
    color: var(--jp-ink) !important;
    font-weight: 800 !important;
  }
  .jp-pdp-ship-row .jp-ship-accent {
    color: var(--jp-green) !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
  }
  .jp-pdp-ship-ico {
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    background: #ecfdf5 !important;
    color: var(--jp-green) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .jp-pdp-ship-ico.is-slate {
    background: #e2e8f0 !important;
    color: #334155 !important;
  }
  .jp-pdp-ship-ico svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Full-width Ergonomic Quantity + Add-to-Cart Row */
  body#product .product-add-to-cart .product-quantity {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  body#product .product-add-to-cart .qty {
    width: 108px !important;
    flex: 0 0 108px !important;
    margin: 0 !important;
  }
  body#product .product-add-to-cart .qty .input-group,
  body#product #quantity_wanted {
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center !important;
  }
  body#product .product-add-to-cart .add {
    flex: 1 1 auto !important;
    margin: 0 !important;
  }
  body#product .product-add-to-cart button.add-to-cart {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: var(--jp-orange) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.28) !important;
  }
  body#product .product-add-to-cart button.add-to-cart:active {
    transform: scale(0.98);
    background: var(--jp-orange-dark) !important;
  }

  /* Sticky Bottom Add-to-Cart Bar on PDP */
  .jp-pdp-sticky-bar {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 950 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    border-top: 1px solid var(--jp-border) !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.1) !important;
  }
  .jp-pdp-sticky-meta {
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }
  .jp-pdp-sticky-price {
    font-size: 17px !important;
    font-weight: 900 !important;
    color: var(--jp-ink) !important;
    line-height: 1.1 !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
  }
  .jp-pdp-sticky-sub {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--jp-green) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 110px !important;
  }
  .jp-pdp-sticky-stepper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  .jp-pdp-sticky-stepper button {
    width: 34px !important;
    height: 40px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--jp-ink) !important;
    padding: 0 !important;
  }
  .jp-pdp-sticky-stepper span {
    min-width: 26px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--jp-ink) !important;
    font-variant-numeric: tabular-nums !important;
  }
  .jp-pdp-sticky-cta {
    flex: 1 1 auto !important;
    height: 44px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--jp-orange) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.28) !important;
  }
  .jp-pdp-sticky-cta:active {
    transform: scale(0.97);
    background: var(--jp-orange-dark) !important;
  }

  /* ========================================================================
     ETAP 3: HOMEPAGE FINDER ABOVE THE FOLD + CLEAN CATEGORY CARDS
     ======================================================================== */
  body#index #japro-hero {
    padding: 14px 0 18px !important;
  }
  body#index .jp2-hero-layout {
    gap: 14px !important;
  }
  body#index .jp2-hero-copy .jp2-eyebrow {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  body#index #jp2-hero-title {
    font-size: 24px !important;
    line-height: 1.15 !important;
    margin: 0 0 8px !important;
  }
  body#index .jp2-hero-copy .jp2-lead {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }
  body#index .jp2-actions {
    gap: 8px !important;
  }
  body#index .jp2-actions .jp2-button {
    min-height: 42px !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
  }

  /* Compact, crisp 3-step Finder card */
  body#index #jp2-finder {
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  }
  body#index #jp2-finder .jp2-applications {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  body#index #jp2-finder .jp2-applications label span {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    padding: 10px 6px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    word-break: normal !important;
  }
  body#index #jp2-finder .jp2-widths {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  body#index #jp2-finder .jp2-widths label span {
    border-radius: 10px !important;
    min-height: 44px !important;
  }
  body#index #jp2-finder #jp2-length {
    height: 44px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }
  body#index #jp2-finder .jp2-submit {
    min-height: 48px !important;
    border-radius: 12px !important;
    background: var(--jp-orange) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.28) !important;
  }

  /* ========================================================================
     ETAP 6: HOMEPAGE MIDDLE SECTIONS (2-COL CATEGORIES + SWIPE + COMPACT B2B)
     ======================================================================== */
  body#index .jp-ab section h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }

  /* 1. Categories: Completely Rebuilt Compact 2x3 Tile Grid (1433px -> ~490px) */
  body#index .jp-background-categories > section {
    padding: 18px 12px 18px !important;
  }
  body#index .jp-background-categories > section > div:first-child {
    margin-bottom: 12px !important;
    gap: 6px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  body#index .jp-background-categories > section > div:first-child h2 {
    font-size: 19px !important;
    line-height: 1.15 !important;
    margin-top: 2px !important;
  }
  body#index .jp-background-categories > section > div:first-child > a {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--jp-orange) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  body#index .jp-background-categories .ab-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    gap: 8px !important;
  }
  body#index .jp-background-categories a.ab-category {
    position: relative !important;
    grid-row: auto !important;
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    gap: 7px !important;
    padding: 8px 8px 10px !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
    min-height: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
  }
  /* Card #1 (TZ Bestseller): Same compact 2x3 slot, distinct dark accent + orange border */
  body#index .jp-background-categories a.ab-category:first-child {
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: linear-gradient(155deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1.5px solid var(--jp-orange) !important;
    color: #ffffff !important;
    padding: 8px 8px 10px !important;
    gap: 7px !important;
  }
  body#index .jp-background-categories a.ab-category:first-child > div:nth-child(1) {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    z-index: 2 !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }
  body#index .jp-background-categories a.ab-category:first-child > div:nth-child(1) span {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    line-height: 1.2 !important;
    border-radius: 5px !important;
  }
  body#index .jp-background-categories a.ab-category:first-child > div:nth-child(2) {
    order: 2 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
  }
  body#index .jp-background-categories a.ab-category:first-child > div:nth-child(2) br {
    display: none !important;
  }
  body#index .jp-background-categories a.ab-category:first-child > p,
  body#index .jp-background-categories a.ab-category:first-child > span:last-child {
    display: none !important;
  }
  body#index .jp-background-categories a.ab-category:first-child > div:nth-child(4) {
    order: 1 !important;
    flex: none !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body#index .jp-background-categories a.ab-category:first-child img {
    max-height: 58px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  /* Cards #2-#6 (OZ, INOX, TAB, DET, PM): Identical compact tile anatomy */
  body#index .jp-background-categories a.ab-category:not(:first-child) > div:last-child {
    flex: none !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body#index .jp-background-categories a.ab-category:not(:first-child) > div:last-child img {
    max-height: 58px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  body#index .jp-background-categories a.ab-category:not(:first-child) > div:first-child {
    gap: 0 !important;
    align-items: center !important;
  }
  body#index .jp-background-categories a.ab-category:not(:first-child) > div:first-child > span:nth-child(1) {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    z-index: 2 !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    line-height: 1.2 !important;
    border-radius: 5px !important;
    background: #0f172a !important;
    color: #ffffff !important;
  }
  body#index .jp-background-categories a.ab-category:not(:first-child) > div:first-child > span:nth-child(2) {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--jp-ink) !important;
  }
  body#index .jp-background-categories a.ab-category:not(:first-child) > div:first-child > span:nth-child(3),
  body#index .jp-background-categories a.ab-category:not(:first-child) > div:first-child > span:last-child {
    display: none !important;
  }
  /* "Także w ofercie" pills: clean single-line horizontal strip */
  body#index .jp-background-categories > section > div:last-child {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    margin-top: 10px !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
  }
  body#index .jp-background-categories > section > div:last-child::-webkit-scrollbar {
    display: none;
  }
  body#index .jp-background-categories > section > div:last-child > span {
    display: none !important;
  }
  body#index .jp-background-categories > section > div:last-child > a {
    flex: 0 0 auto !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    color: var(--jp-ink) !important;
    border-radius: 999px !important;
  }

  /* 2. Applications ("Gdzie trzymają opaski JaPro"): Smooth Horizontal Swipe Carousel */
  body#index .jp-background-applications > section {
    padding: 22px 0 24px !important;
  }
  body#index .jp-background-applications > section > div:first-child {
    padding: 0 14px !important;
    margin-bottom: 14px !important;
    gap: 8px !important;
  }
  body#index .jp-background-applications > section > div:first-child p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  body#index .jp-background-applications .ab-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding: 0 14px 6px !important;
    scrollbar-width: none !important;
  }
  body#index .jp-background-applications .ab-grid::-webkit-scrollbar {
    display: none;
  }
  body#index .jp-background-applications a.ab-scene {
    flex: 0 0 265px !important;
    width: 265px !important;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    padding: 16px !important;
    border-radius: 16px !important;
    scroll-snap-align: start !important;
    grid-column: auto !important;
    grid-row: auto !important;
    gap: 5px !important;
  }
  body#index .jp-background-applications a.ab-scene > span:nth-of-type(2) {
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }
  body#index .jp-background-applications a.ab-scene > span:nth-of-type(3) {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  /* 3. Hide duplicate Width Comparison section on mobile (already covered by #jp2-finder at top) */
  body#index section.ab-widths#szerokosci {
    display: none !important;
  }

  /* 3B. Featured Products ("Polecane produkty"): Horizontal Swipe Carousel (2522px -> ~370px!) */
  body#index #japro-home .jp-ab .ab-products {
    padding: 20px 12px 8px !important;
  }
  body#index #japro-home .ab-products .ab-heading {
    margin-bottom: 14px !important;
    gap: 8px !important;
  }
  body#index #japro-home .ab-products .ab-heading h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }
  body#index #japro-home .ab-product-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding: 0 12px 8px !important;
    margin: 0 -12px !important;
    scrollbar-width: none !important;
  }
  body#index #japro-home .ab-product-grid::-webkit-scrollbar {
    display: none;
  }
  body#index #japro-home .ab-product {
    flex: 0 0 212px !important;
    width: 212px !important;
    scroll-snap-align: start !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  }
  body#index #japro-home .ab-product-photo {
    max-height: 125px !important;
    padding: 8px !important;
  }
  body#index #japro-home .ab-product-copy {
    padding: 12px !important;
    gap: 8px !important;
  }
  body#index #japro-home .ab-product h3 {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  body#index #japro-home .ab-product-bottom strong {
    font-size: 17px !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body#index #japro-home .ab-choose {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    background: var(--jp-orange) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
  }

  /* 3C. Testimonials ("Co mówią nasi klienci"): Ultra-Compact Small Swipe Tiles (418px -> ~225px) */
  body#index #cztestimonialcmsblock.jp4-reviews {
    padding: 16px 0 18px !important;
    background: #f8fafc !important;
  }
  body#index #cztestimonialcmsblock.jp4-reviews > .container {
    padding: 0 12px !important;
  }
  body#index #cztestimonialcmsblock.jp4-reviews .products-section-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.02em !important;
  }
  body#index #cztestimonialcmsblock #jp4-testimonial-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 8px !important;
    padding: 0 12px 4px !important;
    margin: 0 -12px !important;
    scrollbar-width: none !important;
  }
  body#index #cztestimonialcmsblock #jp4-testimonial-grid::-webkit-scrollbar {
    display: none;
  }
  body#index #cztestimonialcmsblock .jp4-review-card {
    flex: 0 0 218px !important;
    width: 218px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    scroll-snap-align: start !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  }
  body#index #cztestimonialcmsblock .jp4-review-card:before,
  body#index #cztestimonialcmsblock .jp4-review-card:after,
  body#index #cztestimonialcmsblock .jp5-quote {
    display: none !important;
  }
  body#index #cztestimonialcmsblock .jp4-review-card .testimonial-description {
    margin: 0 0 8px !important;
  }
  body#index #cztestimonialcmsblock .jp4-review-card .testimonial-description::before {
    content: "★★★★★" !important;
    display: block !important;
    font-size: 11px !important;
    line-height: 1 !important;
    letter-spacing: 1.5px !important;
    color: #f59e0b !important;
    margin-bottom: 6px !important;
  }
  body#index #cztestimonialcmsblock .jp4-review-card .feedback-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: var(--jp-ink) !important;
    margin: 0 0 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  body#index #cztestimonialcmsblock .jp4-review-card .feedback {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    color: var(--jp-muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  body#index #cztestimonialcmsblock .jp4-review-author {
    padding-top: 8px !important;
    gap: 7px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-top: 1px solid #f1f5f9 !important;
  }
  body#index #cztestimonialcmsblock .jp5-avatar {
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
  }
  body#index #cztestimonialcmsblock .jp5-avatar svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* 4. Hide duplicate Guides & B2B Wholesale cards on mobile (guides linked under finder, phone/B2B in header & footer) */
  body#index .jp-technical-lower {
    display: none !important;
  }

  /* 5. Company Story Card ("Za każdą paczką stoją konkretni ludzie") */
  body#index section.ab-company {
    padding: 10px 12px 24px !important;
  }
  body#index section.ab-company > div {
    border-radius: 16px !important;
  }
  body#index section.ab-company > div > div:first-child {
    min-height: 185px !important;
    flex: 1 1 100% !important;
  }
  body#index section.ab-company > div > div:last-child {
    padding: 20px 16px !important;
    gap: 12px !important;
    flex: 1 1 100% !important;
  }
  body#index section.ab-company p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
  body#index section.ab-company a.jp-button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
  }

  /* Category Product Cards (target actual Electshop .product_list.grid container) */
  body#category #products .products,
  body#search #products .products,
  #js-product-list .products {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body#category #js-product-list .product_list.grid,
  body#search #js-product-list .product_list.grid,
  #products .product_list.grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  body#category #js-product-list .product_list.grid > *,
  body#search #js-product-list .product_list.grid > *,
  #products .product_list.grid > *,
  #products .product_list.grid .product_item,
  #products .product_list.grid .product-miniature {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
    float: none !important;
  }
  body#category #products .thumbnail-container,
  body#search #products .thumbnail-container {
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: 14px !important;
    padding: 10px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  }
  body#category #products .product-title a,
  body#search #products .product-title a {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: var(--jp-ink) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  body#category #products .product-price-and-shipping .price,
  body#search #products .product-price-and-shipping .price {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: var(--jp-orange) !important;
    font-variant-numeric: tabular-nums !important;
  }

  /* ========================================================================
     ETAP 4: MOBILE CART (body#cart) & DISTRACTION-FREE CHECKOUT (body#checkout)
     ======================================================================== */
  /* Free-Shipping Progress Bar (500 zł threshold) */
  .jp-free-ship-box {
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin: 0 0 12px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  }
  .jp-free-ship-box.is-unlocked {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
  }
  .jp-free-ship-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--jp-ink) !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .jp-free-ship-box.is-unlocked .jp-free-ship-text {
    color: #065f46 !important;
    margin-bottom: 0 !important;
  }
  .jp-free-ship-text strong {
    color: var(--jp-orange) !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums !important;
  }
  .jp-free-ship-box.is-unlocked .jp-free-ship-text strong {
    color: #047857 !important;
  }
  .jp-free-ship-track {
    width: 100% !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    overflow: hidden !important;
  }
  .jp-free-ship-fill {
    height: 100% !important;
    border-radius: 999px !important;
    background: var(--jp-orange) !important;
    transition: width 0.3s ease !important;
  }
  .jp-free-ship-box.is-unlocked .jp-free-ship-track {
    display: none !important;
  }

  /* Mobile Cart Cards */
  body#cart #wrapper,
  body#checkout #wrapper {
    background: var(--jp-surface) !important;
    padding-top: 8px !important;
  }
  body#cart .cart-grid-body,
  body#cart .cart-grid-right {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  body#cart .card.cart-container,
  body#cart .card.cart-summary {
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
  }
  body#cart .card-block h1 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--jp-ink) !important;
    margin: 0 !important;
  }
  body#cart .cart-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  body#cart .product-line-info a.label {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: var(--jp-ink) !important;
    line-height: 1.3 !important;
  }
  body#cart .product-price strong,
  body#cart .cart-summary-line.cart-total .value {
    font-size: 17px !important;
    font-weight: 900 !important;
    color: var(--jp-ink) !important;
    font-variant-numeric: tabular-nums !important;
  }
  body#cart .js-cart-line-product-quantity {
    height: 40px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
  }
  body#cart .checkout.cart-detailed-actions .btn-primary {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    background: var(--jp-orange) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.28) !important;
  }

  /* Distraction-Free Mobile Checkout */
  body#checkout #header,
  body#checkout #header .header-top {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 6px !important;
  }
  body#checkout #header .header-top > .container {
    grid-template-rows: auto !important;
    gap: 0 6px !important;
  }
  body#checkout #header #search_block_top {
    display: none !important;
  }
  body#checkout section.checkout-step {
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: 16px !important;
    padding: 14px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  }
  body#checkout section.checkout-step .step-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--jp-ink) !important;
    text-transform: none !important;
  }
  /* iOS-friendly 16px inputs (prevents Safari auto-zoom) */
  body#checkout .form-control,
  body#checkout input[type="text"],
  body#checkout input[type="email"],
  body#checkout input[type="tel"],
  body#checkout input[type="password"],
  body#checkout select {
    min-height: 44px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 8px 12px !important;
    color: var(--jp-ink) !important;
    background-color: #ffffff !important;
  }
  body#checkout .form-control:focus {
    border-color: var(--jp-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14) !important;
  }
  /* Delivery & Payment Option Cards */
  body#checkout .delivery-option,
  body#checkout .payment-option {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
  }
  body#checkout .delivery-option label,
  body#checkout .payment-option label {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--jp-ink) !important;
    margin: 0 !important;
  }
  /* Checkout Primary Buttons */
  body#checkout button.continue,
  body#checkout #payment-confirmation button[type="submit"],
  body#checkout .form-footer button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    background: var(--jp-orange) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.28) !important;
    margin-top: 8px !important;
  }
  body#checkout #js-checkout-summary {
    background: #ffffff !important;
    border: 1px solid var(--jp-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  }

  /* ========================================================================
     ETAP 5: COHESIVE MODERN MOBILE FOOTER (#0f172a + CONTACT CARD + 13px LINKS)
     ======================================================================== */
  #footer {
    background: #0f172a !important;
    border-top: 3px solid var(--jp-orange) !important;
    color: #cbd5e1 !important;
  }
  #footer .footer-before,
  #footer .footer-container,
  #footer .footer-after {
    background: #0f172a !important;
  }
  #footer .footer-container {
    padding: 20px 0 16px !important;
  }
  #footer .footer-container > .container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 0 14px !important;
    gap: 10px !important;
  }
  #footer .footer-container .jp4-contact {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 14px !important;
  }
  /* Clean 1-column collapsible Accordion Cards for Footer Sections */
  #footer .footer-container .links:not(.jp4-contact),
  #footer .footer-container #block_myaccount_infos {
    grid-column: 1 / -1 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  #footer .footer-container .title[data-toggle="collapse"] {
    display: none !important;
  }
  #footer .footer-container .links:not(.jp4-contact) > h3,
  #footer .footer-container .links:not(.jp4-contact) > p.h3,
  #footer .footer-container #block_myaccount_infos > h3,
  #footer .footer-container #block_myaccount_infos > .myaccount-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    cursor: pointer !important;
  }
  #footer .footer-container .jp-acc-trigger::after {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #94a3b8 !important;
    border-bottom: 2px solid #94a3b8 !important;
    transform: rotate(45deg) !important;
    transition: transform 0.2s ease !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
  }
  #footer .footer-container .jp-acc-open .jp-acc-trigger::after {
    transform: rotate(-135deg) !important;
    border-color: var(--jp-orange) !important;
  }
  #footer .footer-container .links:not(.jp4-contact) ul,
  #footer .footer-container .links:not(.jp4-contact) ul.collapse,
  #footer .footer-container #block_myaccount_infos ul,
  #footer .footer-container #block_myaccount_infos ul.collapse {
    display: none !important;
    padding: 4px 14px 12px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  }
  #footer .footer-container .links.jp-acc-open ul,
  #footer .footer-container .links.jp-acc-open ul.collapse,
  #footer .footer-container #block_myaccount_infos.jp-acc-open ul,
  #footer .footer-container #block_myaccount_infos.jp-acc-open ul.collapse {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
  }
  /* Prominent Login / Register buttons inside "Twoje konto" */
  #footer #footer_account_list a[href$="/moje-konto"],
  #footer #footer_account_list a[href$="/logowanie"],
  #footer #footer_account_list a[title*="Zaloguj"] {
    margin: 8px 0 6px !important;
    padding: 0 14px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: var(--jp-orange) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    justify-content: center !important;
    text-decoration: none !important;
  }
  #footer #footer_account_list a[href*="rejestracja"],
  #footer #footer_account_list a[href*="create_account"] {
    margin: 0 0 6px !important;
    padding: 0 14px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    justify-content: center !important;
    text-decoration: none !important;
  }
  #footer .footer-container .jp4-company-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin-bottom: 8px !important;
  }
  #footer .footer-container .links li,
  #footer .footer-container #block_myaccount_infos li {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  #footer .footer-container .links li:last-child,
  #footer .footer-container #block_myaccount_infos li:last-child {
    border-bottom: none !important;
  }
  #footer .footer-container .links a,
  #footer .footer-container #block_myaccount_infos a {
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #cbd5e1 !important;
    min-height: 38px !important;
    padding: 6px 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  #footer .footer-container .jp4-contact li {
    border-bottom: none !important;
  }
  #footer .footer-container .jp4-contact .phone a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    margin-top: 6px !important;
    border-radius: 10px !important;
    background: var(--jp-green) !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
    text-decoration: none !important;
  }
  #footer .footer-after {
    padding: 0 0 20px !important;
  }
  #footer .footer-after > .container {
    padding: 16px 14px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }
  #footer .japro-footer-documents {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
  }
  #footer .japro-footer-documents a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
  }
  #footer .footer-after .copyright,
  #footer .footer-after .copyright a {
    text-align: center !important;
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
  }
}

/* Narrow phones (<= 360px): keep call number readable without wrapping */
@media (max-width: 360px) {
  #header .header-top > .container {
    grid-template-columns: 70px minmax(0, 1fr) 42px !important;
  }
  #header .header_logo {
    width: 70px !important;
    min-width: 70px !important;
  }
  #header .jp-mob-call-cta {
    font-size: 13px !important;
    padding: 0 4px !important;
    gap: 4px !important;
  }
}
