.product-whatsapp-button {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.25rem;
  border: 1px solid #292929;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #111 0%, #242424 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.6rem;
  line-height: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.product-whatsapp-button:hover {
  border-color: #25d366;
  background: linear-gradient(135deg, #171717 0%, #292929 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.product-whatsapp-button svg {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  flex: 0 0 0.875rem;
  color: #25d366;
  stroke: currentColor;
}

.product-whatsapp-button--large {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  letter-spacing: 0.035em;
  gap: 0.625rem;
}

/* Flash Sale cards use a block wrapper, so the inline-flex CTA needs an explicit width. */
section.bg-black .grid-cols-1 .product-whatsapp-button {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

/* Related and similar product cards on the product-details page. */
.product-recommendations .product-whatsapp-button {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.product-recently-viewed .product-whatsapp-button {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

/* Wishlist cards use the mobile-product-list wrapper on every viewport size. */
.mobile-product-list .product-whatsapp-button {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .product-whatsapp-button {
    gap: 0.5rem;
    padding: 0.875rem 0.75rem;
    font-size: 0.75rem;
  }

  .product-whatsapp-button svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-basis: 1.125rem;
  }
}

@media (max-width: 639px) {
  .product-whatsapp-button {
    width: 100%;
    flex-basis: auto;
  }
}

.product-save-badge {
  display: inline-block;
  padding: 0.1875rem 0.375rem;
  border-radius: 0.3rem;
  background-color: #dc2626;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.22);
}

.product-stock-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  background: #1f2937;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.product-out-of-stock-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.25rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: not-allowed;
}
