/* ===================================================================
   Shared button component — loaded by both the landing and storefront
   stylesheets. Each context maps the --btn-* tokens from its own
   palette (style.css / landing.css); theme files under styles/ may
   override .btn--primary for their signature CTA look.
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--btn-min-height, 3rem);
  padding: var(--btn-pad, 0.8rem 1.4rem);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--btn-font-size, 0.95rem);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--btn-radius, 12px);
  transition: transform var(--dur, 0.2s) var(--ease, ease),
    box-shadow var(--dur, 0.2s) var(--ease, ease),
    background-color var(--dur, 0.2s) var(--ease, ease),
    color var(--dur, 0.2s) var(--ease, ease),
    border-color var(--dur, 0.2s) var(--ease, ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink, #fff);
  box-shadow: var(--btn-primary-shadow, none);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--btn-primary-bg-h, var(--btn-primary-bg));
  color: var(--btn-primary-ink, #fff);
  box-shadow: var(--btn-primary-shadow-h, var(--btn-primary-shadow, none));
}

.btn--secondary {
  background: var(--btn-secondary-bg, transparent);
  color: var(--btn-secondary-ink, inherit);
  border: 1px solid var(--btn-border);
}

.btn--ghost {
  background: transparent;
  color: var(--btn-ghost-ink, inherit);
  border: 1px solid var(--btn-border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--btn-ghost-border-h, var(--btn-border));
  color: var(--btn-ghost-ink-h, var(--btn-ghost-ink, inherit));
  background: var(--btn-ghost-bg-h, transparent);
}

.btn--sm {
  min-height: 0;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
