.ff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  height: var(--ff-button-height);
  padding: 0 var(--ff-button-pad);
  border-radius: var(--ff-radius-button);
  border: var(--ff-button-border) solid transparent;
  background: var(--ff-color-primary);
  color: var(--ff-color-primary-text);
  font-family: var(--ff-font-button);
  font-size: var(--ff-button-size);
  font-weight: var(--ff-button-weight);
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--ff-button-shadow);
  cursor: pointer;
  transition: background var(--ff-transition) ease, color var(--ff-transition) ease, border-color var(--ff-transition) ease, transform var(--ff-transition) ease;
}
.ff-button:hover {
  background: var(--ff-color-primary-hover);
  color: var(--ff-color-primary-hover-text);
}
.ff-button:hover .ff-button__icon { transform: translateX(3px); }
.ff-button__icon { transition: transform var(--ff-transition) ease; }
.ff-button:disabled, .ff-button.disabled { opacity: 0.45; cursor: not-allowed; }
.ff-button--secondary {
  background: var(--ff-color-secondary-bg);
  color: var(--ff-color-secondary-text);
  border-color: var(--ff-color-secondary-border);
}
.ff-button--secondary:hover {
  background: var(--ff-color-secondary-hover-bg);
  color: var(--ff-color-secondary-hover-text);
}

.ff-icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ff-color-heading);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  padding: 0;
}
.ff-icon-button:hover { background: var(--ff-color-beige); color: var(--ff-color-heading); }

.ff-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ff-color-badge-bg);
  color: var(--ff-color-badge-text);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}
.ff-badge--card {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  z-index: 2;
}

.ff-card { color: inherit; }
.ff-card__media {
  position: relative;
  border-radius: var(--ff-radius-card);
  overflow: hidden;
  background: var(--ff-color-placeholder);
}
.ff-card__media img, .ff-card__media .ff-placeholder { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform var(--ff-transition) ease; }
.ff-card:hover .ff-card__media img { transform: scale(1.03); }
.ff-card__body { padding: 14px 4px 0; }
.ff-card__collection { margin: 0 0 4px; color: var(--ff-color-muted); font-size: 13px; }
.ff-card__title { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.02em; }
.ff-card__title a { color: var(--ff-color-heading); text-decoration: none; }
.ff-card__price, .ff-card__price .price { color: var(--ff-color-price); font-weight: 700; font-size: 16px; }
.ff-card__price del, .price del { color: var(--ff-color-muted); font-weight: 500; margin-right: 6px; }
.ff-card__price ins, .price ins { color: var(--ff-color-price-sale); text-decoration: none; }
.ff-card__sizes { color: var(--ff-color-muted); font-size: 13px; margin: 6px 0 12px; }
.ff-card__button { width: 100%; height: 46px; }
.ff-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ff-color-surface);
  color: var(--ff-color-heading);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ff-wishlist.is-active { color: var(--ff-color-primary); }
.ff-wishlist.is-active .ff-icon--heart { display: none; }
.ff-wishlist.is-active::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19.2s-6.6-4.1-6.6-8.1A3.35 3.35 0 0 1 12 8.15a3.35 3.35 0 0 1 6.6 2.95c0 4-6.6 8.1-6.6 8.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.star-rating { color: var(--ff-color-star); font-size: 14px; }
.star-rating::before { color: var(--ff-color-border); }

input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="tel"], input[type="password"], input[type="url"], select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ff-color-border);
  background: var(--ff-color-form);
  border-radius: var(--ff-radius-form);
  padding: 10px 14px;
}
textarea { min-height: 120px; }

.quantity {
  display: inline-flex;
  align-items: center;
  height: 56px;
  width: 148px;
  border: 1px solid var(--ff-color-border);
  border-radius: var(--ff-radius-variant);
  background: var(--ff-color-surface);
  overflow: hidden;
}
.quantity .ff-qty-btn, .quantity input.qty {
  border: 0;
  background: transparent;
  height: 100%;
  text-align: center;
}
.quantity .ff-qty-btn { width: 44px; cursor: pointer; color: var(--ff-color-heading); }
.quantity input.qty { width: 48px; padding: 0; min-height: 0; border-radius: 0; -moz-appearance: textfield; }
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
