/* button styles. .btn is the base look, other classes (.btn-outline,
   .btn-accent, etc) get added on top to change the color, e.g.
   <a class="btn btn-accent">Shop Now</a> */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Outlined button: just a border, no fill, used for secondary actions. */
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, .05);
}

/* accent button - uses --color-accent-dark for the main CTA. plain accent
   is too light in some themes for white text to stay readable, see
   variables.css */
.btn-accent {
  background: var(--color-accent-dark);
}

.btn-accent:hover {
  box-shadow: var(--shadow-md);
}

/* Danger button: red, for destructive actions like "Delete" or "Remove". */
.btn-danger {
  background: var(--color-danger);
}

/* Smaller button, e.g. inside a product card. */
.btn-sm {
  padding: .45rem 1rem;
  font-size: .85rem;
}

/* Sign up button in the nav bar.
   border-radius:999px makes it a pill -- rounds the corners as much as
   the button's height allows. only looks right if the padding stays
   small, like the plain text links next to it -- too much padding and
   the button grows taller than the bar and looks like a blob instead of
   a pill. keep vertical padding small (under ~1rem) for anything using
   999px radius in a nav bar */
/* uses --color-accent-dark not plain accent so white text stays
   readable, same reason as .btn-accent above */
.btn-nav {
  background: var(--color-accent-dark);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
}

/* makes a button fill full width -- handy for the submit button under a
   narrow login/register form */
.btn-block {
  width: 100%;
  justify-content: center;
}
