/* Shared card actions; load after the page and compact mobile card styles. */
.product-card .card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 14px 0 0;
}

.pdp-related-grid .card-actions {
  margin-top: 13px;
}

.product-card .card-copy .card-actions > .card-add {
  flex: 1 1 0;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 8px 12px;
  gap: 8px;
  white-space: nowrap;
}

.product-card .card-actions > .card-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.product-card .card-actions > .card-whatsapp:hover {
  border-color: #0e703e;
  background: #0e703e;
  color: #fff;
}

.product-card .card-actions > .card-whatsapp:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.product-card .card-whatsapp svg {
  display: block;
  width: 24px;
  height: 27px;
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}

.product-card .card-whatsapp svg path {
  fill: currentColor;
  stroke: none;
}

@media (max-width:767.98px), (max-width:900px) and (max-height:500px) {
  .product-card .card-copy .card-actions {
    gap: 6px;
    margin-top: 5px;
  }

  .product-card .card-copy .card-actions > .card-add {
    padding: 6px 5px;
    gap: 5px;
    font-size: 13px;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
  }

  .product-card .card-actions .card-add svg {
    width: 17px;
    height: 17px;
  }
}

/* Keep the full action label beside the circle in narrow saved-items cards. */
@media (max-width:380px) {
  .product-card .card-actions .card-add svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card .card-actions > .card-whatsapp {
    transition: none;
  }
}
