/* Pharma-Plus Product Page — mobile first */
.pppp-hidden{display:none!important}

.pppp-ask{display:flex;align-items:center;gap:12px;margin:14px 0 4px;padding:12px 14px;border-radius:16px;background:#ecf8f0;border:1px solid #cdebd7;color:#0f5132;text-decoration:none}
.pppp-ask__icon{flex:0 0 40px;height:40px;border-radius:50%;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center}
.pppp-ask__text{display:flex;flex-direction:column;line-height:1.25}
.pppp-ask__text strong{font-size:15px;color:#0a2547}
.pppp-ask__text small{font-size:13px;color:#3b6b4e}

/* Staff-only edit button: its own line, never squeezing the buy row */
.pp-single__buy{flex-wrap:wrap}
.pp-single__buy .ppqc-single-edit{order:99;flex:1 0 100%;margin-top:10px;position:static!important}

.pppp-sticky{display:none}

@media (max-width:760px){
  /* Top: one compact breadcrumb line, no second "browse" pill */
  .single-product .ppd-back-to-catalog{display:none!important}
  .single-product .pp-breadcrumb{white-space:nowrap;overflow-x:auto;scrollbar-width:none;font-size:13px}
  .single-product .pp-breadcrumb::-webkit-scrollbar{display:none}
  .single-product .pp-breadcrumb [aria-current]{display:none}
  .single-product .pp-breadcrumb .pp-breadcrumb__sep:nth-last-child(2){display:none}

  /* Bigger, cleaner product photo */
  .pp-single__gallery .woocommerce-product-gallery{background:#fff;border-radius:22px;overflow:hidden}
  .pp-single__gallery .woocommerce-product-gallery__image img{max-height:min(78vw,340px)!important;height:min(78vw,340px)!important;width:100%!important;object-fit:contain}
  .pp-single__gallery .flex-control-thumbs{display:flex!important;gap:8px;overflow-x:auto;padding:8px 4px 2px;margin:0}
  .pp-single__gallery .flex-control-thumbs li{flex:0 0 56px;width:56px!important;list-style:none}
  .pp-single__gallery .flex-control-thumbs img{border-radius:10px;border:1px solid #e6e9ef;background:#fff}

  /* Buy row: quantity + wishlist on top, a full-width add-to-cart button below */
  .pp-single__buy{display:grid!important;grid-template-columns:auto 1fr auto;grid-template-areas:"qty . wish" "btn btn btn";gap:12px;align-items:center}
  .pp-single__buy form.cart{display:contents!important}
  .pp-single__buy form.cart .quantity{grid-area:qty;width:auto!important;min-width:0;margin:0!important}
  .pp-single__buy form.cart .single_add_to_cart_button{grid-area:btn;width:100%!important;min-width:0!important;min-height:56px;margin:0!important;border-radius:999px!important;white-space:nowrap;justify-content:center;font-size:18px;padding-inline:20px!important}
  .pp-single__buy .pp-single__wish{grid-area:wish;width:48px;height:48px;border-radius:50%}
  .pp-single__buy:has(.quantity.pppp-hidden){grid-template-columns:1fr auto;grid-template-areas:"btn wish"}
  .pp-single__buy .ppqc-single-edit{grid-column:1 / -1;margin-top:0}

  /* Recommendation rows: swipe sideways instead of a long grid */
  .ppd-product-recs .ppd-product-grid{display:grid!important;grid-auto-flow:column;grid-auto-columns:46%;grid-template-columns:none!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px;scrollbar-width:none;overscroll-behavior-x:contain}
  .ppd-product-recs .ppd-product-grid::-webkit-scrollbar{display:none}
  .ppd-product-recs .ppd-product-grid > *{scroll-snap-align:start;min-width:0}
  .ppd-product-recs h2{font-size:19px;margin-bottom:10px}
  .ppd-product-recs{margin-top:22px}

  /* Sticky add-to-cart bar */
  .pppp-sticky{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:999;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -6px 24px rgba(10,37,71,.14);transform:translateY(110%);transition:transform .22s ease}
  .pppp-sticky.is-visible{transform:none}
  .pppp-sticky__img{width:44px;height:44px;object-fit:contain;border-radius:10px;background:#f6f7f9;flex:0 0 44px}
  .pppp-sticky__info{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;line-height:1.2}
  .pppp-sticky__name{font-size:13px;color:#0a2547;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pppp-sticky__price{font-weight:800;color:#d00a29;font-size:17px}
  .pppp-sticky__price del{display:none}
  .pppp-sticky__price ins{text-decoration:none}
  .pppp-sticky__btn{flex:0 0 auto;border:0;border-radius:999px;background:linear-gradient(180deg,#e8173a,#c50a27);color:#fff;font-weight:700;font-size:15px;padding:13px 20px;min-height:48px}
  body.pppp-sticky-on{padding-bottom:76px}
}
