/* ElaBela: approved product detail layout B, mobile only. 2026-09-09. */
@media (max-width: 767px) {
  #product.ebdp-product .ebdp-info {
    gap: 24px;
    min-width: 0;
  }
  #product.ebdp-product .ebdp-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand share" "title title";
    align-items: center;
    gap: 12px;
    margin: 0;
  }
  #product.ebdp-product .ebdp-heading::after { display: none; }
  #product.ebdp-product .ebdp-brand { grid-area: brand; margin: 0; }
  #product.ebdp-product .ebdp-share {
    grid-area: share;
    float: none;
    margin: 0;
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    animation: none;
    box-shadow: none;
  }
  #product.ebdp-product .ebdp-share::before,
  #product.ebdp-product .ebdp-share::after { display: none; }
  #product.ebdp-product .ebdp-share-stack { width: 18px; height: 18px; }
  #product.ebdp-product .ebdp-share-label { display: none; }
  #product.ebdp-product .ebdp-title {
    grid-area: title;
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.02em;
    text-transform: none;
    overflow-wrap: anywhere;
  }
  #product.ebdp-product .ebdp-description {
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
  }
  #product.ebdp-product .ebdp-paragraph { margin: 0 0 12px; }
  #product.ebdp-product .ebdp-description-list { margin: 12px 0 0; }
  #product.ebdp-product .ebdp-description-item { margin-bottom: 8px; }
  #product.ebdp-product .ebdp-buy { margin: 0; }
  #product.ebdp-product .ebdp-price-box { padding: 16px; }
  #product.ebdp-product .ebdp-price { font-size: 30px; line-height: 1.2; }
  #product.ebdp-product .ebdp-currencies { margin-top: 16px; gap: 8px; }
  #product.ebdp-product .ebdp-currency { padding: 12px 10px; }
  #product.ebdp-product .ebdp-purchase { margin-top: 20px; gap: 20px; }
  #product.ebdp-product .ebdp-state { gap: 10px; }
  #product.ebdp-product .ebdp-purchase-row { gap: 16px; }
  #product.ebdp-product .ebdp-actions { gap: 12px; }

  /* Keep the main action on its own row even when quantity could fit beside it. */
  #product.ebdp-product .ebdp-buy-slot {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }
  #product.ebdp-product .ebdp-buy-button .ebdp-buy-content {
    padding: 0 16px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }
  #product.ebdp-product .ebdp-quantity-label { margin-bottom: 8px; }
  #product.ebdp-product .ebdp-facts { margin-top: 20px; margin-bottom: 0; padding: 16px; }
  #product.ebdp-product .ebdp-payments { margin-top: 8px; }
  /* Existing header cart and inline product WhatsApp remain available. */
  #product.ebdp-product .ebdp-floating-cart,
  #product.ebdp-product .ebdp-floating-help { display: none !important; }
  #product.ebdp-product .ebdp-photo-box { margin-bottom: 24px; }
  #product.ebdp-product .ebdp-photo { height: 280px; max-height: 280px; width: 100%; object-fit: contain; }
  #product.ebdp-product .ebdp-description { padding-top: 24px; border-top: 1px solid #ece7e4; }
  #product.ebdp-product .ebdp-facts { margin-top: 0; }
}
@media (max-width: 340px) {
  #product.ebdp-product .ebdp-title { font-size: 22px; }
  #product.ebdp-product .ebdp-currencies { grid-template-columns: minmax(0, 1fr); }
}
