/* Mobile product bottom bar — WhatsApp 30% + Add to cart 70% */
.pp-sticky-atc,
.pp-mobile-bar {
  display: none;
}

@media (max-width: 980px) {
  .pp-sticky-atc,
  .pp-mobile-bar {
    position: fixed;
    inset-inline: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 65;
    background: #eeeff2;
    border: 1px solid #e0e2e7;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 6px 22px rgba(14, 22, 38, 0.1);
    transform: translateY(120%);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
    pointer-events: none;
  }

  .pp-sticky-atc.is-visible,
  .pp-mobile-bar.is-visible {
    display: block;
    transform: translateY(0);
    pointer-events: auto;
  }

  .pp-mobile-bar__inner,
  .pp-sticky-atc__inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 5px;
    direction: rtl;
    width: 100%;
  }

  .pp-mobile-bar__atc,
  .pp-sticky-atc__btn {
    flex: 0 0 70%;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    background: var(--navy, #0e1626);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, opacity 0.15s ease;
  }

  @media (hover: hover) {
    .pp-mobile-bar__atc:hover:not(:disabled),
    .pp-sticky-atc__btn:hover:not(:disabled) {
      background: var(--teal-2, #0a8a93);
    }
  }

  .pp-mobile-bar__atc:active:not(:disabled),
  .pp-sticky-atc__btn:active:not(:disabled) {
    background: var(--teal-2, #0a8a93);
  }

  .pp-mobile-bar__atc:disabled,
  .pp-sticky-atc__btn:disabled,
  .pp-mobile-bar__atc.is-busy,
  .pp-sticky-atc__btn.is-busy {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
  }

  .pp-mobile-bar__wa {
    flex: 0 0 calc(30% - 5px);
    min-width: 0;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 0.1px;
    transition: background 0.15s ease, filter 0.15s ease;
  }

  .pp-mobile-bar__wa:hover {
    background: #1ebe57;
    color: #fff;
  }

  .pp-mobile-bar__wa svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
  }

  .pp-mobile-bar__wa span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide in-page WhatsApp CTA — replaced by bottom bar */
  body.pp-page .pp-wa-ask {
    display: none !important;
  }

  /* Hide global WhatsApp FAB on product pages */
  body.pp-page .fab-stack.r {
    display: none !important;
  }

  body.pp-has-sticky-atc {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}
