/* Shared card actions; load after the page and compact mobile card styles. */
.card-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 68px);
  padding: 5px 9px;
  border-radius: 20px;
  background: #fdfdfc;
  color: #5e413b;
  font: 700 11px/1.3 var(--body);
  box-shadow: 0 2px 8px #18212512;
  pointer-events: none;
}

.pdp-stock-badge {
  margin: 8px 0;
  color: #805541;
  font: 400 12px/1.5 var(--body);
}

.pdp-details h1,
.pdp-selected-product p,
.product-card h3 {
  overflow-wrap: anywhere;
}

.product-card .card-actions > .card-add:disabled,
.pdp-button-primary:disabled {
  background: #e7eae7;
  border-color: #d8dfd8;
  color: #56635c;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.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;
  }
}
