.icon {
  height: 1.5rem;
  width: 1.5rem;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  width: 2.75rem;
}

.icon-button:hover {
  background: var(--color-surface-muted);
}

.button,
button.button,
input.button {
  align-items: center;
  background: var(--color-brand);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 750;
  gap: var(--space-2);
  justify-content: center;
  line-height: 1.2;
  min-height: var(--control-height);
  padding: 0.78rem 1.2rem;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover,
button.button:hover,
input.button:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  color: #fff;
}

.button:active,
button.button:active,
input.button:active {
  background: var(--color-brand-active);
  transform: translateY(1px);
}

.button--secondary {
  background: var(--color-surface);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.button--secondary:hover {
  background: var(--color-brand-soft);
  border-color: var(--color-brand-hover);
  color: var(--color-brand-hover);
}

.button--tertiary {
  background: transparent;
  border-color: transparent;
  color: var(--color-brand);
  min-height: 2.75rem;
  padding-inline: var(--space-2);
}

.button[disabled],
.button.is-disabled,
button[disabled],
input[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
}

.button[aria-busy="true"]::after {
  animation: turlio-spin 700ms linear infinite;
  border: 0.13rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  height: 1rem;
  width: 1rem;
}

label {
  color: var(--color-text);
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  min-height: var(--control-height);
  padding: 0.72rem 0.85rem;
  width: 100%;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-subtle);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-focus);
  outline: none;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.field--error input {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  display: block;
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--color-brand);
  height: 1.2rem;
  margin: 0 var(--space-2) 0 0;
  width: 1.2rem;
}

.badge {
  align-items: center;
  background: var(--color-brand-soft);
  border-radius: var(--radius-pill);
  color: var(--color-brand-hover);
  display: inline-flex;
  font-size: var(--font-size-xs);
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
  min-height: 1.65rem;
  padding: 0.35rem 0.65rem;
}

.badge--accent,
.badge--sale {
  background: var(--color-accent-soft);
  color: #8d3515;
}

.badge--success,
.status--available {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.badge--muted,
.status--unavailable {
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.product-card__media {
  aspect-ratio: 1;
  background: var(--color-surface-muted);
  overflow: hidden;
  position: relative;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
}

.product-card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.product-card__price {
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-card__price del {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

@keyframes turlio-spin {
  to { transform: rotate(360deg); }
}

