/**
 * Barra fissa "Aggiungi al carrello" sulle schede prodotto (solo mobile)
 * e pulsante WhatsApp flottante su mobile.
 */
.cameli-sticky-atc { display: none; }

@media (max-width: 767px) {
  .cameli-sticky-atc {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.6rem calc(1rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .cameli-sticky-atc.is-visible { transform: translateY(0); }

  .cameli-sticky-atc__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
  }
  .cameli-sticky-atc__title {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cameli-sticky-atc__price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
    line-height: 1.2;
  }
  .cameli-sticky-atc__price del {
    font-size: 1.2rem;
    opacity: .55;
    margin-right: .4rem;
  }
  .cameli-sticky-atc__price ins { text-decoration: none; }
  .cameli-sticky-atc__price .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cameli-sticky-atc__btn {
    flex-shrink: 0;
    background: #111;
    border: 1px solid #111;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    padding: 1.5rem 1.6rem;
    white-space: nowrap;
    cursor: pointer;
  }
  .cameli-sticky-atc__btn:disabled { opacity: .6; }

  body.has-sticky-atc { padding-bottom: 76px; }

  /* WhatsApp: visibile anche su mobile, sopra la barra quando c'e' */
  body .wa__btn {
    display: block !important;
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 20px;
    transition: bottom .25s ease;
  }
  body .wa__btn img { width: 100%; height: 100%; }
  body.has-sticky-atc .wa__btn { bottom: 88px; }
  body.woocommerce-checkout .wa__btn { display: none !important; }
}